Assembly.Load("assembly name")

Chrisaldi

Active member
Joined
Jan 30, 2004
Messages
26
Hi again to all.

I have a problem regarding loading an assembly file.

I already get the Assembly Name from error message string System.Runtime.Interop and I want to load it using Assembly.Load("System.Runtime.Interop") but It always returns an error "File not found!" I have already check for the spelling and it is correct.. and if im not mistaken, System.Runtime.Interop is an assembly name.

I am also researching but any idea would be a great help!

Thanks!
 
Originally posted by PlausiblyDamp
You will need to provide the full path to the assembly - including the .dll extension.


Sir, can I also get the path if I have only the Assembly Name? or I just supply it to the code?
 
If it is in the standard search path then just the assembly name + extension should do, otherwise you will need the path and name.
 
Sir can I rephrase my problem...
I hope you could help me on this...

I am trapping all exception errors from UI which calls a web service. For example, Upon ordering of the customer, if the product selected of the user doesnt belong to the supplier then it should throw an exception error which I can trap easily if it is specified as COMexception, but it always throw a soap exception error. One solution that I try was to create an instance of an object from error message which displays the assembly name that creates the error, from that (If possible) I can trap exception errors in general. But I think I am getting far and complicated. Is there other way I can trap soapexception errors?

any idea would be a great help. Thanks a lot! More power!
 
Back
Top