Re: Add Web References problems

From: Russ (russk2_at_eticomm.net)
Date: 05/02/04


Date: Sun, 02 May 2004 09:22:26 -0400

Luke, here is some followup information. I have been studying the
problem more...

When I get the error:

> E:\testNet\AuthorsWinClient\Web References\asrv\Reference.map(1): Custom tool warning: DiscoCodeGenerator unable to initialize code generator. No code generated.

It references the file ReferenceMap, line 1. Here is that file:

> <?xml version="1.0" encoding="utf-8"?>
> <DiscoveryClientResultsFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <Results>
> <DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://asrv/AuthorsWebService/AuthorsService.asmx?disco" filename="AuthorsService.disco" />
> <DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://asrv/AuthorsWebService/AuthorsService.asmx?wsdl" filename="AuthorsService.wsdl" />
> </Results>
> </DiscoveryClientResultsFile>

Is there any problem with the file?

ALSO: You said "I suspect if the VS.NET has been installed
completely", based on the error message above. I took that to mean
that maybe disco.exe was not executing.

First I looked to be sure that Disco.exe exists. I found it at:

E:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin\disco.exe

Next, I wanted to see if that directory was included in the execute
dir's of Visual Studio. I found (under tools/options/executable
files, in projects/VC++ Directories): $(FrameworkSDKDir)bin. That is
how I expect VS finds the disco.exe file. (However I did not find any
C# Directories references.)

But when I looked at system or personal environment variables there
was no entry for "FrameworkSDKDir". So I added one, setting it to
E:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\

This did not help, the error message when trying to add a Web
reference is the same. From what I can tell, the problem is not that
disco does not execute, but that it has a problem with the map file.

I tried executing the disco program manually from command line. Here
is what I got:

E:\testNet\AuthorsWinClient\Web
References\asrv>e:\progra~1\micros~1.net\sdk\v1.1\bin\disco
http://asrv/AuthorsWebService/AuthorsService.asmx?disco
Microsoft (R) Web Services Discovery Utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Disco found documents at the following URLs:
http://asrv/AuthorsWebService/AuthorsService.asmx?disco
http://asrv/AuthorsWebService/AuthorsService.asmx?wsdl

The following files hold the content found at the corresponding URLs:
  .\AuthorsService.disco <-
http://asrv/AuthorsWebService/AuthorsService.asmx?disco
  .\AuthorsService.wsdl <-
http://asrv/AuthorsWebService/AuthorsService.asmx?wsdl
The file .\results.discomap holds links to each of these files.

I really don't know where to turn next...

Thanks, Russ

On Fri, 30 Apr 2004 06:32:37 GMT, lukezhan@online.microsoft.com
([MSFT]) wrote:

>Hi Russ,
>
>Can you compile the Web service project and try to run it (A IE windows
>will prompt you to test the web service)? If not, what is the error
>Message? Additionally, from the error message in your message, I suspect if
>the VS.NET has been installed completely. Can you not be able use a dataset
>in any project?
>
>
>Luke
>Microsoft Online Support
>
>Get Secure! www.microsoft.com/security
>(This posting is provided "AS IS", with no warranties, and confers no
>rights.)



Relevant Pages

  • Re: add web reference then point to wsdl
    ... I did that and got the error message referenced in my first post. ... The guy at the place where they had the web service said everything's A-OK ... > to right click on the References section in the Project Explorer and choose ... >>I wanted to use a web service and have the URL to the wsdl document. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Custom classes with web services
    ... What you are experiencing is the automatic behavior of the generated proxy. ... As far as changing your web service, this is possibly an area that you want ... >Both the Windows app and the Webservices will use this User class. ... >Each web service references the .dll to get the user class. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Frustrating Build Error...
    ... Your statement about the project references is correct. ... All of the related assemblies exist in the web service project's bin ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • Re: unknown function name in query expression
    ... I experienced a problem getting to the references ... > Does the error message occur when you open any module, ... > Make a backup copy of this database before doing anything else. ... Uncheck it, recheck it, close and open Access. ...
    (microsoft.public.access.queries)
  • Re: unknown function name in query expression
    ... that really does not sound good Lynn! ... > A couple of years ago, I experienced a problem getting to the references ... >> Does the error message occur when you open any module, ... >> Make a backup copy of this database before doing anything else. ...
    (microsoft.public.access.queries)