We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Server Not Found when publishing application to iis [Answered]RSS

1 reply

Last post May 11, 2021 01:40 AM by samwu

  • Server Not Found when publishing application to iis

    May 10, 2021 03:55 PM|SNBMW|LINK

    Hi all,

    I have an asp.net application, it works fine in the vs, but when I publish it to iis, It says "Server Not Found." 

    Can anyone help me solve this?

  • Re: Server Not Found when publishing application to iis

    May 11, 2021 01:40 AM|samwu|LINK

    Hi SNBMW,

    SNBMW

    I have an asp.net application, it works fine in the vs, but when I publish it to iis, It says "Server Not Found." 

    Have you added hoat name to the hosts file? If not, add the following to hosts file.

    xxx.x.x.x(ip address) host name

    Location: C:\Windows\System32\Drivers\etc\hosts

    More information about DNS record you can refer to this link: https://www.tutorialsteacher.com/articles/set-custom-domain-name-for-localhost-website-iis.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >