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?

enter image description here

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.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -