Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

Posted
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?

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...