I’m learning asp.net mvc 2, it’s very excting with me.
I has built a small MVC2 application, it is working fine in built it ASP.net Development Server. However, there’re something wrong when have it deployed in IIS 7.5, Window Server 2008 R2 Enterprise. Session is awlays null when I access the application by IE and use hostname to specify the url.
Using IE (IE 7 or IE8) to access my application with link http://localhost/ or ipaddress => every working fine
But when I use IE (IE 7 or IE8) to access my application with link http:/hostname/ => session always null
I’m supprised while FireFox working fine in all cases, both of built in ASP.net Development Server and IIS server, both cases hostname and ip and localhost.
I really appreciate your advise!
Thanks
I figured out the problem, that caused by the web server host name which has an underscore.
Thanks all.