By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,543 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,543 IT Pros & Developers. It's quick & easy.

Urgent : InvalidCast.. Please help me

P: n/a
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.

Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.