R
Rui Dias
Hi there!
I've searched a lot and haven't found any clue to solve my problem.
I'm programming in VB.NET several DLL's wich are to be called by a single EXE. How does it know how to call them? It goes to a DB and gets DLL's name and corresponding Form name.
Example: "./Documental.dll" and "Documental.frmDocument"
Off course Documental DLL and the main EXE are in the same directory. However it works only, I say, 60% of the times. Other times it gives an error looked like this:
System.IO.FileNotFoundException
File or assembly name Documental.dll, or one of its dependencies, was not found.
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
Could any one help me with this? I'm getting bold just thinking of this.
Thank you in advance!
Rui Dias
I've searched a lot and haven't found any clue to solve my problem.
I'm programming in VB.NET several DLL's wich are to be called by a single EXE. How does it know how to call them? It goes to a DB and gets DLL's name and corresponding Form name.
Example: "./Documental.dll" and "Documental.frmDocument"
Off course Documental DLL and the main EXE are in the same directory. However it works only, I say, 60% of the times. Other times it gives an error looked like this:
System.IO.FileNotFoundException
File or assembly name Documental.dll, or one of its dependencies, was not found.
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
Could any one help me with this? I'm getting bold just thinking of this.
Thank you in advance!
Rui Dias