Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I already asked this question, with no suitable answer and I get getting the same problem on random servers.

I have an ASP.NET 3.5 application that is deployed using the Setup Project (MSI) and works fine in 90% of the installations, but time to time I found a Windows 2008 Server that has this problem.

I have a simple test that sets a session variable and reads from it.

This never works on Internet Explorer and I do have cookies enabled (for Cookie Session), but:

if I change the url from

http://SERVER_NAME/APP_NAME/ to

http://localhost/APP_NAME/ or http://SERVER_IP/APP_NAME/ everything works!

And I can add that the SERVER_NAME is already in TRUSTED WEBSITES of IE

what can I do to fix this?

Seams, at first sight a DNS problem, but it's a intranet site, as long as the Server has a DNS Server, it should work fine out-of-the-box, correct?


I recreated this problem using HyperV and Windows 2008 R2

Any help is greatly appreciated.

share|improve this question
    
It isn't clear what the problem is here. Please read tinyurl.com/so-hints about making questions easy to answer. Given this is about sessions: need to know what time period you are going back to the server and the server's app pool configuration. –  Richard Jan 23 '11 at 8:50

1 Answer 1

I wonder if an existing cookie is messing with the session cookie. Try changing your sessionState settings to use a different cookie name and see if that helps. And/or clear your cookies and restart the browser. Also try removing it from the Intranet zone to prove whether or not it's from that.

Do you get the same with all browsers? I guess if it's not IE you won't be in the Intranet zone so different browsers will probably have different results.

share|improve this answer
    
I did tried that, was one of my first thoughts, but this is very weird. I wonder if it's a DNS problem (thought I tested with openDNS servers and flushed the cache) . then I remember ... wait, this is internally, should never go to outside DNS. :( P.S. I still have this problem in 2 Windows 2008R2 Servers. –  balexandre Feb 8 '11 at 8:16
    
I should have asked, but is the error a session error, or does the page not even load with the servername? If it doesn't load, the session part is a bunny trail and not the real issue. If it does load but has session issues, try Firebug or Fiddler2 to see if you can narrow down any anomalies. –  Scott Forsyth - MVP Feb 8 '11 at 17:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.