This documentation is archived and is not being maintained.

Invalid Web Reference

Visual Studio 2008

This error message appears when you try to add a Web reference to a Visual C++ project, but the URL specifies a file with an extension that cannot be used by the project. The URL must reference a file with one of the following extensions:

  • .disco

  • .vsdisco

  • .asmx

  • .asmx

  • .wsdl or ?wsdl

You may be able to locate the appropriate file by removing the file name from the address and using just the server and service name in the URL.