Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Urgent : InvalidCast.. Please help me ~

Reply
Thread Tools

Urgent : InvalidCast.. Please help me ~

 
 
Bsiang Tan
Guest
Posts: n/a
 
      02-26-2004
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
urgent help....need urgent help on say string task.. pooja Software 0 03-03-2009 06:16 AM
PLEASE HELP ME!!!! URGENT!!! I NEED YOUR HELP!!! Yucky Corpulent HTML 5 01-27-2006 11:15 PM
URGENT !! QUEUE STL PROBLEM URGENT!! Sachin Jagtap C++ 4 04-29-2005 12:08 PM
HELP! HELP! PLEASE, PLEASE, PLEASE tpg comcntr Computer Support 11 02-15-2004 06:22 PM
please help... ...me learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM



Advertisments