Urgent : InvalidCast.. Please help me ~

Discussion in 'ASP .Net Web Services' started by Bsiang Tan, Feb 26, 2004.

  1. Bsiang Tan

    Bsiang Tan Guest

    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.
     
    Bsiang Tan, Feb 26, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    551
    Chris Uppal
    May 5, 2005
  2. Yucky Corpulent
    Replies:
    5
    Views:
    425
  3. KK
    Replies:
    2
    Views:
    664
    Big Brian
    Oct 14, 2003
  4. MuZZy
    Replies:
    7
    Views:
    1,799
    Mike Hewson
    Jan 7, 2005
  5. Bsiang Tan

    Urgent : InvalidCast... Please help me..

    Bsiang Tan, Feb 26, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    113
    Alvin Bruney [MVP]
    Mar 2, 2004
Loading...

Share This Page