
Could not load file or assembly
I posted on a similar matter back in May when I was having problem
developing. Im not deplying and the same problem is rearing its head and Im
getting inconsistent results accross machines.
The scenario can bbe summarised as follows
My application is a vb6 standard exe. This is installed into
C:\Program Files\MyApp.
This application needs to interact with a third-party app which is a dot net
assembly and is installed to
C:\Program Files\ThirdPartyApp
A dot net dll MyApp.Interop.dll has been developed (by third party) to allow
MyApp to communicate with ThirdPartyApp.
On PC1 I can run MyApp from its install dir and the interoperation between
the two systems is fine.
On PC2 I get the error "Could not load file or assembly ..." unless I place
MyApp.exe into ThirdPartyApp directory
I have run regasm on the MyApp.Interop.dll assembly on both pcs but this
does not seem to have made any difference. The dot net assemblies have not
been strongly named so I cannot install into GAC (I have read that this would
probably solve the problem).
Id appreciate help on this as I need to have a robust rollout plan in place
by the end of the week
Previous thread:
http://www.*-*-*.com/