c# - stdole.dll has already loaded from a different location? -
i'm trying build solution composed of multiple projects in visual studio 2010, 1 of projects giving me strange error when compile it:
cannot load referenced assembly: c:\windows\assembly\gac\stdole\7.0.3300.0_b03f5f711d50a3a\stdole.dll system.io.fileloadexception - api restriction: assembly 'file:\\\<same above>' has loaded different location. cannot loaded new location within same appdomain.
at first though need remove stdole.dll reference, deleted it. however, after deleting it, following error instead:
the type or namespace 'stdole' not found (are missing using directive or assembly reference?)
adding reference again gave first error again.
i understand why last error, don't understand why i'm getting first. i'm new @ .net, , 1 remaining @ current company experience c#, meaning there's no 1 here can me. i've spent time trying solution online, lack of experience in domain making hard me find answer can understand.
any appreciated!
you can directly add reference file address example:
c:\windows\assembly\gac\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll
not gac (registered assemblies)
This comment has been removed by the author.
ReplyDeleteHello user,
ReplyDeleteI got the same error, and i have solved it as a very simple way. Just remove the refernce of stdole from your application and rebuild the solution again then you can check no error will be shown.
Thanks,
Saurabh.