Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Deploying a WebService in to Rempte Server
 

Deploying a WebService in to Rempte Server

Hi,

I am using VS2003 1.1 framework.

I had created a Webservice file (.asmx) and i need to deploy my application into the server.

Also i had created an c#.Net WebApplication (.aspx) and i deployed into the server by using

PROJECT -> COPY PROJECT -> Server IP Address.

ButI done the same thing with the webservice (.asmx) ,itsuccessfully deployed but when opening the application from the webserver, its giving the message that "The test form is only available for requests from the local machine"

How can i deploy the service and my application on the Server?

Please help me.......

jaishankar2704  Wednesday, August 22, 2007 9:41 AM

Hi,the .NET Framework 1.1 defines a new protocol that is named HttpPostLocalhost. By default, this new protocol is enabled. This protocol permits invoking Web services that use HTTP POST requests from applications on the same computer. This is true provided the POST URL uses http://localhost, not http://hostname. This permits Web service developers to use the HTML-based test form to invoke the Web service from the same computer where the Web service resides.

When you try to access the Web service from a remote computer you do not see the Invoke button. And, you receive the following error message:

The test form is only available for requests from the local machine
You can enable these protocols for all Web services on the computer by editing the section in Machine.config. The following example enables HTTP GET, HTTP POST, and also SOAP and HTTP POST from localhost:

Code Snippet

<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="HttpPostLocalhost"/>
<!-- Documentation enables the documentation/test pages -->
<add name="Documentation"/>
</protocols>

For more information ,please check this artilce form msdn.
Gavin Jin - MSFT  Tuesday, August 28, 2007 8:03 AM

Hi,the .NET Framework 1.1 defines a new protocol that is named HttpPostLocalhost. By default, this new protocol is enabled. This protocol permits invoking Web services that use HTTP POST requests from applications on the same computer. This is true provided the POST URL uses http://localhost, not http://hostname. This permits Web service developers to use the HTML-based test form to invoke the Web service from the same computer where the Web service resides.

When you try to access the Web service from a remote computer you do not see the Invoke button. And, you receive the following error message:

The test form is only available for requests from the local machine
You can enable these protocols for all Web services on the computer by editing the section in Machine.config. The following example enables HTTP GET, HTTP POST, and also SOAP and HTTP POST from localhost:

Code Snippet

<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="HttpPostLocalhost"/>
<!-- Documentation enables the documentation/test pages -->
<add name="Documentation"/>
</protocols>

For more information ,please check this artilce form msdn.
Gavin Jin - MSFT  Tuesday, August 28, 2007 8:03 AM

You can use google to search for other answers

Custom Search

More Threads

• Problems in deploying an application with the Mage.exe command-line tool
• Custom Deployment for ClassLibrary
• Can't Install MSI on Windows NT 4.0 SP 6a
• ClickOnce Sqlserver express prerequisite failure, even though I have file
• MSI Update Question
• Run pre install exe before the install
• Custom Setup Window in Service Setup
• code: 0x80070643
• Stopping processes before uninstalling.
• Creating single setup.exe file for setup project