WSDL, Wrong DLL(??) and "Error: Method not found"

Discussion in 'ASP .Net' started by triffid@oink.co.uk, Jan 22, 2008.

  1. Guest

    Hi,

    I'm trying to use VS 2003's WSDL.exe to create the web service proxies
    for a book example (Sams Teach Yourself Web Programming in 21 Days,
    ahem).

    Typing at the VS prompt:-
    D:\workdir\src\timeservice> wsdl /l:CD /n:WebBook /out:TimeProxy.cs
    http://localhost/TimeService/TimeUtils.asmx?WSDL
    gives

    "Error: Method not found: Void
    System.Web.Services.Discovery.DiscoveryClientProtocol.LoadExternals()"

    On MS's site
    ( http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1454967&SiteID=1
    )
    someone having a similar problem is told
    "seems like the wsdl.exe you're using is of the wrong version. make
    sure you are using the same version as the System.Web.Services.dll
    available on your machine."

    Makes sense. I only have one wsdl.exe, and I have two
    System.Web.Services.dlls. I also know that VS '03 is pretty old now,
    and will be using an older version of .Net.

    However, looking at my PATH, it seems like the first one should be
    used, and even explicitly altering my path (see after sig) to remove
    the directory containing the wrong version of the DLL (corresponding
    to ASP.Net v2.0 instead of 1.1, I assume) doesn't change anything- I
    still get the error.

    Any thoughts?

    - Triffid


    Original PATH:-
    Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
    \Program Files\
    Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program Files\Microsoft
    Visual Stud
    io .NET 2003\Common7\Tools;Y:\Program Files\Microsoft Visual
    Studio .NET 2003\Co
    mmon7\Tools\bin\prerelease;Y:\Program Files\Microsoft Visual
    Studio .NET 2003\Co
    mmon7\Tools\bin;Y:\Program Files\Microsoft Visual Studio .NET 2003\SDK
    \v1.1\bin;
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
    \WINDOWS;C:\W
    INDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK\2.0\bin;Y:
    \Program Files\
    Java\jdk1.5.0_07\bin;C:\Program Files\Common Files\Adobe\AGL;"Y:
    \Program Files\Z
    one Labs\ZoneAlarm\MailFrontier";C:\Program Files\Microsoft SQL Server
    \90\Tools\
    binn\;C:\Program Files\Common Files\Ulead Systems\MPEG;C:\WINDOWS
    \Microsoft.NET\
    Framework\v2.0.50727;Y:\Program Files\QuickTime\QTSystem\;

    Altered PATH:-
    Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
    \Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program
    Files\Microsoft Visual Studio .NET 2003\Common7\Tools;Y:\Program Files
    \Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;Y:
    \Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;Y:
    \Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin; C:
    \WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
    \WINDOWS;C:\WINDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK
    \2.0\bin;Y:\Program Files\Java\jdk1.5.0_07\bin;C:\Program Files\Common
    Files\Adobe\AGL;"Y:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:
    \Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
    \Common Files\Ulead Systems\MPEG;
     
    , Jan 22, 2008
    #1
    1. Advertising

  2. Guest

    Hi

    I had the same exact error and I followed the directions noted in your
    post to resolve it. I looked at the date of creation of the
    System.Web.Services.dll and wsdl.exe and used the wsdl corresponding
    to the closest match between the dates (I had the
    System.Web.Services.dll files from 2002 to 2003 and wsdl.exe files
    from 2003 to 2004. I used the one from 2003.

    Hope this helps

    thanks
    nitin nagar
    On Jan 21, 3:27 pm, wrote:
    > Hi,
    >
    > I'm trying to use VS 2003's WSDL.exe to create the web service proxies
    > for a book example (Sams Teach Yourself Web Programming in 21 Days,
    > ahem).
    >
    > Typing at the VS prompt:-
    > D:\workdir\src\timeservice> wsdl /l:CD /n:WebBook /out:TimeProxy.cshttp://localhost/TimeService/TimeUtils.asmx?WSDL
    > gives
    >
    > "Error: Method not found: Void
    > System.Web.Services.Discovery.DiscoveryClientProtocol.LoadExternals()"
    >
    > On MS's site
    > (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1454967&SiteID=1
    > )
    > someone having a similar problem is told
    > "seems like the wsdl.exe you're using is of the wrong version. make
    > sure you are using the same version as the System.Web.Services.dll
    > available on your machine."
    >
    > Makes sense. I only have one wsdl.exe, and I have two
    > System.Web.Services.dlls. I also know that VS '03 is pretty old now,
    > and will be using an older version of .Net.
    >
    > However, looking at my PATH, it seems like the first one should be
    > used, and even explicitly altering my path (see after sig) to remove
    > the directory containing the wrong version of the DLL (corresponding
    > to ASP.Net v2.0 instead of 1.1, I assume) doesn't change anything- I
    > still get the error.
    >
    > Any thoughts?
    >
    > - Triffid
    >
    > Original PATH:-
    > Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
    > \Program Files\
    > Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program Files\Microsoft
    > Visual Stud
    > io .NET 2003\Common7\Tools;Y:\Program Files\Microsoft Visual
    > Studio .NET 2003\Co
    > mmon7\Tools\bin\prerelease;Y:\Program Files\Microsoft Visual
    > Studio .NET 2003\Co
    > mmon7\Tools\bin;Y:\Program Files\Microsoft Visual Studio .NET 2003\SDK
    > \v1.1\bin;
    > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
    > \WINDOWS;C:\W
    > INDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK\2.0\bin;Y:
    > \Program Files\
    > Java\jdk1.5.0_07\bin;C:\Program Files\Common Files\Adobe\AGL;"Y:
    > \Program Files\Z
    > one Labs\ZoneAlarm\MailFrontier";C:\Program Files\Microsoft SQL Server
    > \90\Tools\
    > binn\;C:\Program Files\Common Files\Ulead Systems\MPEG;C:\WINDOWS
    > \Microsoft.NET\
    > Framework\v2.0.50727;Y:\Program Files\QuickTime\QTSystem\;
    >
    > Altered PATH:-
    > Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
    > \Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program
    > Files\Microsoft Visual Studio .NET 2003\Common7\Tools;Y:\Program Files
    > \Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;Y:
    > \Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;Y:
    > \Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin; C:
    > \WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
    > \WINDOWS;C:\WINDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK
    > \2.0\bin;Y:\Program Files\Java\jdk1.5.0_07\bin;C:\Program Files\Common
    > Files\Adobe\AGL;"Y:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:
    > \Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
    > \Common Files\Ulead Systems\MPEG;
     
    , Feb 26, 2008
    #2
    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. Dark
    Replies:
    1
    Views:
    4,666
    milfar
    Nov 14, 2008
  2. Chris Bedford
    Replies:
    0
    Views:
    607
    Chris Bedford
    Aug 21, 2003
  3. Stephen Edgecombe

    WSDL.EXE: WSDL Import Directive

    Stephen Edgecombe, Aug 13, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    270
    Stephen Edgecombe
    Aug 13, 2003
  4. RH
    Replies:
    1
    Views:
    281
    Dino Chiesa [Microsoft]
    May 27, 2004
  5. H. Simpson
    Replies:
    4
    Views:
    328
    H. Simpson
    Aug 3, 2004
Loading...

Share This Page