PRB: "Server Error" Error Message While Trying to Call a Web Service Remotely (822323)
The information in this article applies to:
- Microsoft Web Services (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework 1.1)
SYMPTOMSWhen you create an ASP.NET Web service on your computer, and then you
create an ASP.NET Web application remotely on another computer and add
the ASP.NET Web service that you created on your computer as a Web reference, you receive
the following error message on the Web browser: Server Error in '/<TestWebApplication>'
Application. This problem occurs when you exhaust the Web Service method
of the ASP.NET Web service that is created on your computer. CAUSEYou can use localhost in the URL when you add a Web reference. However, the Web browser
considers localhost as the computer where the ASP.NET application runs.
Because the Web service does not exist on the computer where the Web application
runs, you receive the error message in the "Symptoms"
section.RESOLUTIONYou can resolve this problem when you add a Web reference. In the URL, use the
IP address of the computer where the Web service is
created instead of using localhost. This is an example of how to do this: https://10.150.144.111/TestWebService/Service1.asmx For code changes, you can follow the commented instructions
in the Button1_Click() method of the Web application code sample in the "More Information"
section. STATUS This
behavior is by design.REFERENCESFor more information about ASP.NET, visit the following
Microsoft Web site: http://msdn.microsoft.com/library/en-us/cpguide/html/cpconintroductiontoasp.asp
For additional information about how to create an ASP.NET Web application on a remote
Web server, click the following article number to view the article in the Microsoft Knowledge Base:
822316
HOW TO: Create a New ASP.NET Web
Application on a Remote Web Server
Modification Type: | Major | Last Reviewed: | 7/16/2003 |
---|
Keywords: | kbURLMon kberrmsg kbWebServices kbWebServer kbWebBrowser kbRemoting kbASPObj kbprb KB822323 kbAudDeveloper |
---|
|