Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > WSDL, Wrong DLL(??) and "Error: Method not found"

Reply
Thread Tools

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

 
 
triffid@oink.co.uk
Guest
Posts: n/a
 
      01-22-2008
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.DiscoveryClientProto col.LoadExternals()"

On MS's site
( http://forums.microsoft.com/MSDN/Sho...54967&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:\WI NDOWS\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:\WIND OWS\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;
 
Reply With Quote
 
 
 
 
nnagar.bluebery@gmail.com
Guest
Posts: n/a
 
      02-26-2008
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, (E-Mail Removed) 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.DiscoveryClientProto col.LoadExternals()"
>
> On MS's site
> (http://forums.microsoft.com/MSDN/Sho...54967&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:\WI NDOWS\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:\WIND OWS\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;


 
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
Dumb question: in documentation, why Object#method, and not Object.method ? Elf M. Sternberg Ruby 15 07-29-2009 01:20 AM
what's wrong with my method and regular expression? equinox Ruby 3 12-18-2008 01:16 AM
method def in method vs method def in block Kyung won Cheon Ruby 0 11-21-2008 08:48 AM
invoke a method by reflection£¨the method's parameters can not be ArrayList? jerry051 ASP .Net 2 08-02-2005 10:35 AM
Is XML Doc wrong or is Schema wrong? (or both) Matthew XML 7 01-07-2005 10:05 PM



Advertisments