Hi guys,
When attempting to create an instance of a type, in an assembly I am getting an error saying that a referenced assembly, or one of it's dependencies cannot be found. I decompiled the assembly using the ildasm tool and copied all the referenced assemblies into the same folder but it doesn't seem to have fixed the issue.
Any thoughts I'm getting pretty desperate, as if I can get this to work I'll have finished a major project.
Thanks,
Steve.

Error during reflection - dependancy not found
Jim Tanner
I think you didn't add the reference of the assembly in your project file. Right click ur project, click Add Reference>Click Browse select your assembly.
Then when you start writing your code add the namespace to your clas file: using <namespace name>
Andrew DeVaughn
I've solved the issue.
What I was trying to do was load an assembly at run time using the System.Reflection namespace, the interogate, expose and allow method calls on this via a web service. I solved the issue by using the Assembly.LoadFrom method, instead of the Assembly.Load method.
I have a seperate issue now though, in that I keep database location in my app.config file. Now because the assembly is being loaded into the web service, it uses it's app.config (web.config) and the custom sections don't exist.
I don't want to add the sections as it defeats the purpose of being able to load and use the assemblies at run time. Is there any way I can avoid this overloading of the original file with the new file
Thanks,
Steve.
pal0294
U can read this article. I hope this will serve your purpose.
http://www.codeproject.com/csharp/anyconfig.asp