Chrisaldi Posted February 5, 2004 Posted February 5, 2004 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 i'm not mistaken, System.Runtime.Interop is an assembly name. I am also researching but any idea would be a great help! Thanks! Quote
Administrators PlausiblyDamp Posted February 5, 2004 Administrators Posted February 5, 2004 You will need to provide the full path to the assembly - including the .dll extension. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Chrisaldi Posted February 5, 2004 Author Posted February 5, 2004 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? Quote
Administrators PlausiblyDamp Posted February 5, 2004 Administrators Posted February 5, 2004 If it is in the standard search path then just the assembly name + extension should do, otherwise you will need the path and name. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Chrisaldi Posted February 5, 2004 Author Posted February 5, 2004 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 doesn't 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! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.