Peter Chan
asked on
Bad Request - Invalid Hostname
Hi,
In my Win 2008 server, I have published the project fine in "Start" of the site called "WIN-BVDIC8GIAHI". But when I go to this
http://WIN-BVDIC8GIAHI:81/Start
I've got, while I am able to ping "WIN-BVDIC8GIAHI"
Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid.
why?
In my Win 2008 server, I have published the project fine in "Start" of the site called "WIN-BVDIC8GIAHI". But when I go to this
http://WIN-BVDIC8GIAHI:81/Start
I've got, while I am able to ping "WIN-BVDIC8GIAHI"
Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid.
why?
ASKER
Thanks a lot. I can see Site bindings that is
Type Host name Port
http win08.huamin.com 81
is already there. What to adjust on that?
Type Host name Port
http win08.huamin.com 81
is already there. What to adjust on that?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot. After I have used "WIN-BVDIC8GIAHI" instead as the hostname and have restarted the machine, I then get this
Server Error in '/Start' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 12:
Line 13: <system.web>
Line 14: <compilation debug="true" targetFramework="4.0" />
Line 15:
Line 16: <authentication mode="None">
Source File: c:\inetpub\Start\web.confi g Line: 14
Does it mean a problem with the Framework version?
Many Thanks & Best Regards,
HuaMin
Server Error in '/Start' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 12:
Line 13: <system.web>
Line 14: <compilation debug="true" targetFramework="4.0" />
Line 15:
Line 16: <authentication mode="None">
Source File: c:\inetpub\Start\web.confi
Does it mean a problem with the Framework version?
Many Thanks & Best Regards,
HuaMin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
run inetmgr and for the site you intend to browse to ensure iis has the port 81 bound to that hostname.
click on the site in inetmgr and edit binding and from the dropdown select your site and enter the port 81 (you should be good to go)
If any issues you can run iisreset /noforce from the command line.