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

T

triffid

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;
 
N

nnagar.bluebery

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top