473,320 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Path error when enabling sessionstate cookieless = true

Hey,

I have a problem on my server. WHen I activate cookieless sessionstate
I can only execute aspx pages. When the server tries to find an image
in a subfolder eg. http://mysite/(gklffgfgdsg85t6583)/image/top.gif
its not found. The same goes for javascripts ect. if I remove the
sessionid (http://mysite/image/top.gif) the image is found as usual.

This is only a problem on one of our servers, and I suspect that an
update has caused this, but I cant seem to find the error.

Any ideas ?
Nov 18 '05 #1
3 2722
Browser does not know that (gklffgfgdsg85t6583)
is a session id so whenever it sees reference to image/top.gif (or any other
file) it sends a request appending the full path to it.

Only requests for aspx files are mapped to ASP.NET engine and ASP.NET has an
ability to strip out the session id.
Requests for gif, jpg, html, txt,.... are processed by IIS server and IIS
server on WIN2K is totaly unaware of ASP.NET so it can not strip out session
id. I heard that in Win2003 IIS more integrated with ASP.NET and it could
work ( Do not know for sure ).
The solution is to use absolute urls instead of relative urls.

So image/top.gif you shoud be replaced with /image/top.gif (notice first
/ ).

You can use VS to do search and replace in all files ('image' to '/image').

George.

"Morten H." <pb******@pbk.dk> wrote in message
news:9e*************************@posting.google.co m...
Hey,

I have a problem on my server. WHen I activate cookieless sessionstate
I can only execute aspx pages. When the server tries to find an image
in a subfolder eg. http://mysite/(gklffgfgdsg85t6583)/image/top.gif
its not found. The same goes for javascripts ect. if I remove the
sessionid (http://mysite/image/top.gif) the image is found as usual.

This is only a problem on one of our servers, and I suspect that an
update has caused this, but I cant seem to find the error.

Any ideas ?

Nov 18 '05 #2
George,

That was not the solution to the problem ... sorry.
I found a fix for it at microsoft. It seems that the regkey for my
server was messed up. Running the aspnet_regiis.exe -i solved the
problem. It has nothing to do with the browser. The browser holds the
session id inthe URL. The IIS reads the Session ID from the URL and maps
the files to the correct source, mine didn't but the fix took care of
that.

Hope this helps other people as I had a VERY hard time finding the
solution.

Cheers ! (and Merry Christmas)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Can you provide an URL to the article?
Do you use Win2003?
George.

"Morten Hoegh" <pb******@pbk.dk> wrote in message
news:e2**************@tk2msftngp13.phx.gbl...
George,

That was not the solution to the problem ... sorry.
I found a fix for it at microsoft. It seems that the regkey for my
server was messed up. Running the aspnet_regiis.exe -i solved the
problem. It has nothing to do with the browser. The browser holds the
session id inthe URL. The IIS reads the Session ID from the URL and maps
the files to the correct source, mine didn't but the fix took care of
that.

Hope this helps other people as I had a VERY hard time finding the
solution.

Cheers ! (and Merry Christmas)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
3
by: Sean | last post by:
HI There, I am having trouble deploying my .aspx pages to a remote server, I have made changes to the config file and it still returns an error. I have also contacted the server administrator to...
3
by: Niranjan Roy | last post by:
When trying to create Web application project from inside my Visual Studio.Net, I am getting the following error: --------------------------- Microsoft Development Environment ...
0
by: Phl | last post by:
Hi, I am having some problems hosting my website. Everything works fine in my local machine but when I upload to propduction server, my images somethimes won't load properly. I have my state...
13
by: Water Cooler v2 | last post by:
What do you mean by a cookieless session state? When you set the sessionState section's cookieless attribute to true in the web.config file, what does that mean? I read this...
8
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we...
0
by: Justin Dutoit | last post by:
Hey! I'm sorry if this is a bit of a newbie question, but I am gettting unwanted 'Runtime error' messages, i.e. not the error proper, and customErrors mode="Off" doesnt' seem to work. My web.config...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.