c# - Deploy Website in IIS -
i trying deploy website on iis. when deploy without giving host name, works fine. however, if try specify host name, website never loads in browser. instance, gave hostname of www.webservice.com. when try load home page, web browser tries access www.webservice.com:2000/homepage.aspx connection times out. how can solve problem? you have either set dns point host iis running or make entry in "hosts" file. dns production purposes if want test hosts entry enough. find hosts file under %windowsroot%\system32\drivers\etc (eg.: c:\windows\system32\drivers\etc). add name of site (www.webservice.com) there ip of iis host. iis doesn't set dns automatically.