Urgent : InvalidCast.. Please help me ~

B

Bsiang Tan

Dear all experts,

I have this:

An assembly (proxy.dll) which is a WebService proxcy client

Case 1 : [does not work]
Loading proxy.dll using Assembly.LoadFrom(...), invoke a static method of a
class which inside invokes a method of a WebService. Then I get the
exception System.InvalidCastException inside the proxy method...

Case 2 : [works perfectly]
Make a classical reference to proxy.dll in the Project -> Add Reference...,
invoke the same static method as before. This works perfectly.

Is it I miss out something ? Is there anyway to make case 1 work ?
why using Visual studio.net add reference can work, while I invoke
dynamically
using Reflection caot work ?

Please help me... Please..... Please....


Best regards,
Bsiang.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top