locked
Cannot Publish Web Service RRS feed

  • Question

  • User1453549677 posted

    I am, for the first time, trying to Publish my
    Web Service to IIS. I am using VS2015.

    On the first Publish entry screen, I filled out:

    Publish method: Web Deploy
    Server: USER\SQLEXPRESS
    Site name: WebServiceTest2 (the name of the project)
    User name: dave
    Password: ********
    Destination URL: http://localhost:58079/WebServiceTest2

    On another page, I entered "Data Source=USER\SQLEXPRESS;User ID=User\David;Password=********" for ApplicationDbContext


    When I hit the Validate Connection button, I get the error that "Invalid URI, the hostname
    could not be parsed".

    Can anyone help?

    Friday, December 29, 2017 11:55 PM

All replies

  • User283571144 posted

    Hi drl,

    When I hit the Validate Connection button, I get the error that "Invalid URI, the hostname
    could not be parsed".

    Can anyone help?

    According to your publish setting and error message, I guess you type the wrong message when you create the publish profile.

    Since I don't know how you set your IIS and your IIS website application name, I create a test WCF application and publish it to IIS. 

    I suggest you could refer to my publish step:

    1.Create a IIS web site:

    Remember the site name and port.

    2.Publish the application:

    Best Regards,

    Brando

    Monday, January 1, 2018 2:10 AM