none
How to run a c# created web service on the target computer? RRS feed

  • Question

  • I've created a web service intended to supply interested clients with a variety of other tidbits the clients will require in order to achieve a desired result. The web service itself was created from a Visual Studio project template following these basic steps:

    • Create a new ASP.NET empty web application
    • Right click on the newly created application.
    • Choose Add -> New Item -> Web Service (ASMX)

    I then populated the ASMX class with those methods that would provide the functionality required and this works fine. Next, I created a test application and added a web reference to the application. All works well on my development machine. The web application starts, displays a generated web page and the application is able to utilize the service's resources flawlessly. 

    The problem is, what do I need to do in order to move the web service to a real server so that the real clients can access it? The result of the web service project is a dll. How does this get integrated into the target server?


    Richard Lewis Haggard


    Tuesday, April 30, 2019 4:34 PM

All replies

  • ASP.NET Web services can be discussed at the ASP.NET forums.

    http://forums.asp.net/

    Tuesday, April 30, 2019 4:52 PM
  • After spending 15 minutes trying to to access the supplied URL, I gave up. Couldn't get past the 'you must create an account' requirements. No matter what user name I supplied it always insisted that the name was already in use.

    Richard Lewis Haggard

    Tuesday, April 30, 2019 5:24 PM
  • After spending 15 minutes trying to to access the supplied URL, I gave up. Couldn't get past the 'you must create an account' requirements. No matter what user name I supplied it always insisted that the name was already in use.

    Richard Lewis Haggard


    I don't know make a new account call it xyz9000xx or something. :)
    Tuesday, April 30, 2019 5:47 PM
  • You have to deploy the web service to a machine running IIS.

    See section Publish to IIS

    https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/deploying-to-iis


    william xifaras

    Tuesday, April 30, 2019 6:16 PM
  • Please post questions related to web development, including web services in the ASP.NET forums. They can help you get your site deployed and IIS configured to handle the authentication settings that you need to get it working.

    Michael Taylor http://www.michaeltaylorp3.net

    Wednesday, May 1, 2019 2:08 PM
    Moderator