ASP.Net Session State Problem with IIS6

J

JK

We recently installed our web application on Windows 2003 and found that our ASPX pages are not coming up correctly.

We are using sessionstate=StateServer and cookieless=true for Web.config. Applications run perfectly in Windows2000 or XP but in Windows2003 under IIS6 we do not see any of our images and style sheets applied. This is because sessionid is added to the web path and IIS is not able to access it

How can we make this working in Windows2003 under IIS6? Any thoughts are welcome...

Thank
J

FYI: I posted this under iis6 but got no response so I am posting in other groups
 
G

George Ter-Saakov

Let say the page URL is
http://www.mysite.com/{sessionid}/page.aspx

and on this page you have <img src="image/my.gif">

The browser will resolve the image name to
http://www.mysite.com/{sessionid}/image/my.gif because you specified
relative path.


So the solution is to specify absolute path <img src="/image/my.gif">

I hope you got my drift.

PS: I am sure that it worked on Win2000 and XP only because when you moved
to 2003 someone has replace absolute path with relative path. It would not
work anywere if you did not specify absolute path with cookieless=true.

George.


JK said:
We recently installed our web application on Windows 2003 and found that
our ASPX pages are not coming up correctly.
We are using sessionstate=StateServer and cookieless=true for Web.config.
Applications run perfectly in Windows2000 or XP but in Windows2003 under
IIS6 we do not see any of our images and style sheets applied. This is
because sessionid is added to the web path and IIS is not able to access it.
 
B

bruce barker

most likely on the old servers you mapped *.gif to asp.net so the the cookie
filter would handle the munging. check to see if the application mapping are
the same on the old and new servers

-- bruce (sqlwork.com)


JK said:
We recently installed our web application on Windows 2003 and found that
our ASPX pages are not coming up correctly.
We are using sessionstate=StateServer and cookieless=true for Web.config.
Applications run perfectly in Windows2000 or XP but in Windows2003 under
IIS6 we do not see any of our images and style sheets applied. This is
because sessionid is added to the web path and IIS is not able to access it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top