Could not load file or assembly

Discussion of issues, suggestions and bugs of LINQ Insight, Visual Studio add-in for design-time executing LINQ statements, that simplifies debugging LINQ
hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Could not load file or assembly

Post by hepek » Mon 01 Jul 2013 16:09

Hi,

I just installed LINQ insight and when I try to display results I get the error below.
Please note that RRD.OnePlace.DAL is my project that deals with dotConnect software.
The dll RRD.OnePlace.DAL.dll is placed in my app bin folder. I don't know why is LINQ insight unable to find the file.

thanks

Message: Could not load file or assembly 'RRD.OnePlace.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=15a6ff96e314fffd' or one of its dependencies.
The system cannot find the file specified.
Type: System.IO.FileNotFoundException
Source: mscorlib
Site: HandleReturnMessage
Stack Trace:
Server stack trace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.UnitySerializationHolder.GetRealObject(StreamingContext context)
at System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
at System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage.FixupForNewAppDomain()
at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at #=q8VUifXTuBeBqfL2Ila19MvXPJ$49aUH0tshvQN_B0M5VNV2z_NlDBTa5K1xFDbe2llazWGEBdlWyYLYQ3BYFoA==.#=qFdF4w8Pvvqi5SI3d$SX4gw==(String #=qEnlH_qNQR9K6grEdiJjwp1xRRq5VoEGsqYN4nyTe1pE=, Object[] #=qsJYAGhJF2HSdAOT2Pu8GGA==, String& #=q6FLKcemvqSYSTjT05LgLHw==, String& #=qVLltiNmGQ1zLu0MRXqBvsW4XL_geSyvQhgDYAQSsfw8=)
at #=q6JsTP3I4lgo7lG_NjLJU4XUhloGzmpsq0thTjcBG0SRg4svBpT5FjqzpGrdD_VfQB6zdSmNx834tu2vNHvsi0A==.#=qyoZ3$iM0N8jVyPiFikSMEQ==()
at #=q6JsTP3I4lgo7lG_NjLJU4XUhloGzmpsq0thTjcBG0SRg4svBpT5FjqzpGrdD_VfQB6zdSmNx834tu2vNHvsi0A==.#=qoZegzebErHYHHZA5WSjuRZ4TBE$b3lbtyqNH7t1W2QM=.#=qOC9EtHPB4Eq_CZayiJmB8zpz2MM6dMh8XWc_BQ8sces=()

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Could not load file or assembly

Post by MariiaI » Tue 02 Jul 2013 09:34

We couldn't reproduce this issue with the latest build of LINQ Insight 3.0.269. Please provide us with a small test project, with which this error could be reproduced so that we are able to investigate it in more details and find the solution for you.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Could not load file or assembly

Post by MariiaI » Tue 24 Jun 2014 06:48

New build of LINQ Insight 3.2.489 with the fix related to the bug related to the 'Could not load file or assembly...' exception when executing a query that returns enum is available for download (please refer to http://forums.devart.com/viewtopic.php?f=50&t=29837 ).
This build can be downloaded from http://www.devart.com/linqinsight/download.html of from Registered Users' Area (provided that you have an active subscription).

Please try it and tell us about the results.

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Tue 24 Jun 2014 13:50

I get the same error:

Message: Could not load file or assembly 'RRD.OnePlace.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=15a6ff96e314fffd' or one of its dependencies. The system cannot find the file specified.
Type: System.IO.FileNotFoundException
Source: mscorlib
Site: HandleReturnMessage
Stack Trace:
Server stack trace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.UnitySerializationHolder.GetRealObject(StreamingContext context)
at System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
at System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage.FixupForNewAppDomain()
at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at #=qyuKH$gjp$R4UGhPmU8M$oZu5y_6h3d5jbTPMccYQTH8yfhEf_NYloxcgmazw9Zc41VCYz4bHWU_SFu4OAwo4jw==.#=q8WhRDLwZRLHR6wIM762_sg==(String #=qPp6CE7VYMUo2f_roaLAZQdVYDt_BUuoq_Zo1s3WNZpQ=, Object[] #=qz_3XqdeHkLFf1TvvCUzmYQ==, String& #=qz1PPMHqkJlL26uSKDuc0Dw==, String& #=qshhPo5E87SS$zavIC2vrC3_lsFqkAYWyxhq9m7Bn9NM=)
at #=qjt0B45s6rs8DNBQE3$6jxf7hcHGjqzn_H3$6EmFaI5BkorwFEfh2u_DXug8rWgUR7cVnHJwRtHiYFYsIxY0Czw==.#=qzq8W2db06$X6nBZn$Pkmww==()
at #=qjt0B45s6rs8DNBQE3$6jxf7hcHGjqzn_H3$6EmFaI5BkorwFEfh2u_DXug8rWgUR7cVnHJwRtHiYFYsIxY0Czw==.#=qz8ADokWOoIgJ6S99z84XduXDHgTvEXWOVPX9A0PL_TM=.#=qEqw9S_vCohTybbPyObTX0ngfrvnk2227yc1hxog2_Ec=()

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Tue 24 Jun 2014 13:52

the Linq Insight is a great idea, but unfortunately it does not work in VS 2012.

please advice
thank you

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Could not load file or assembly

Post by MariiaI » Wed 25 Jun 2014 10:42

I get the same error:

Message: Could not load file or assembly 'RRD.OnePlace.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=15a6ff96e314fffd' or one of its dependencies. The system cannot find the file specified.
We would be very much obliged to you if you provide us with a small test project, with which this error could be reproduced, so that we are able to investigate it in more details and determine its reason.

Please also specify whether you are encountering any other issues when working with LINQ Insight in Visual Studio 2012 and tell us your thoughts on how we can improve the usability of our product for your convenience. Your opinion is important to us.

Looking forward to your reply.

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Wed 25 Jun 2014 18:06

I get the same error in visual studio 2012.

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Wed 25 Jun 2014 18:07

this assembly 'RRD.OnePlace.DAL is one of my projects containing devart data context.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Could not load file or assembly

Post by MariiaI » Fri 27 Jun 2014 05:36

We couldn't reproduce this issue in our environment. We are sending you a sample project to the e-mail address you have provided in your forum profile. Please check that the letter is not blocked by your mail filter. Please modify our sample project so that the issue could be reproduced and send it back to us, or send us your sample project.

Looking forward to your reply.

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Thu 10 Jul 2014 21:20

hi Mariia, it worked with your little project you sent in email.

but that project does not even read from database. please try to create a project that works with database, and having multiple projects within solution.

I believe that LINQ Insight is a really great idea, but unfortunately it does not work for me.

please let me know when you fix this problem. I really want to use linq insight.
thank you

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Could not load file or assembly

Post by MariiaI » Fri 11 Jul 2014 11:27

Thank you for the response. Unfortunately, we still couldn't reproduce this issue in our environment with a more complex project (e.g., with several projects within the solution and LinqConnect model in one of the projects): the data is retrieved from the database successfully.
Test project will significantly speed up the process of determining the cause of the error and fixing it.
Also, these details will be helpful:
- the exact type and structure of your application (how many projects do you have within the solution, the references between them, etc.);
- the query you are trying to perform, etc.

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Tue 26 Aug 2014 13:52

I just installed the latest version of LinkInsight, and I was hoping that bug I reported was resolved.

When I try to use LinkInsight I get "evaluation period expired" message.

how do I test the latest version? thank you.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Could not load file or assembly

Post by MariiaI » Wed 27 Aug 2014 10:52

We have contacted you by e-mail.

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Wed 27 Aug 2014 14:26

the latest version works fine.

this is such a great product!

thank you for your help

hepek
Posts: 126
Joined: Thu 07 Jul 2011 13:59

Re: Could not load file or assembly

Post by hepek » Wed 27 Aug 2014 14:45

it is not clear to me how do you invoke linq profiler?

I can open the profiler by choosing View/Other Windows/Link Profiler, but there is no data in there.

thanks

Post Reply