473,320 Members | 1,991 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.

Cookieless session problem...

Hi,

I am building a mobile site. It has to have cookieless sessions enabled as
asp.net mobile stores viewstate information for controls in session. I need
one directory in the application (that takes input from a remote site), to
not have cookieless sessions as it can't redirect the call from
/_test/scriptname.aspx to /{sessionID}/_test/scriptname.aspx. I am able to do
this using the web.config location element, however I get the error "It is an
error to use a section registered as allowDefinition='MachineToApplication'
beyond application level. This error can be caused by a virtual directory not
being configured as an application in IIS.".

This can be solved by making the "_test" directory an application in iis,
but then it needs its on bin folder for the dll's etc. I was wonder if anyone
knew of a way around this, so I don't need to make the "_test" directory an
application or can just disable sessions for certain scripts.

Thanks in advance for any suggestions...
-Jac
Nov 19 '05 #1
2 1689
Have you tried the EnableSessionState attribute of the @ Page directive?

"Jac Timms" wrote:
Hi,

I am building a mobile site. It has to have cookieless sessions enabled as
asp.net mobile stores viewstate information for controls in session. I need
one directory in the application (that takes input from a remote site), to
not have cookieless sessions as it can't redirect the call from
/_test/scriptname.aspx to /{sessionID}/_test/scriptname.aspx. I am able to do
this using the web.config location element, however I get the error "It is an
error to use a section registered as allowDefinition='MachineToApplication'
beyond application level. This error can be caused by a virtual directory not
being configured as an application in IIS.".

This can be solved by making the "_test" directory an application in iis,
but then it needs its on bin folder for the dll's etc. I was wonder if anyone
knew of a way around this, so I don't need to make the "_test" directory an
application or can just disable sessions for certain scripts.

Thanks in advance for any suggestions...
-Jac

Nov 19 '05 #2
brilliant, thank you!
i can't believe i missed that...
i looked on this page thinking there might be something i could do in the
page directive.
http://msdn.microsoft.com/library/de.../cpconpage.asp
thanks again.
-jac
"Brad Roberts" wrote:
Have you tried the EnableSessionState attribute of the @ Page directive?

"Jac Timms" wrote:
Hi,

I am building a mobile site. It has to have cookieless sessions enabled as
asp.net mobile stores viewstate information for controls in session. I need
one directory in the application (that takes input from a remote site), to
not have cookieless sessions as it can't redirect the call from
/_test/scriptname.aspx to /{sessionID}/_test/scriptname.aspx. I am able to do
this using the web.config location element, however I get the error "It is an
error to use a section registered as allowDefinition='MachineToApplication'
beyond application level. This error can be caused by a virtual directory not
being configured as an application in IIS.".

This can be solved by making the "_test" directory an application in iis,
but then it needs its on bin folder for the dll's etc. I was wonder if anyone
knew of a way around this, so I don't need to make the "_test" directory an
application or can just disable sessions for certain scripts.

Thanks in advance for any suggestions...
-Jac

Nov 19 '05 #3

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

Similar topics

2
by: JV | last post by:
Hi, The URL I'm trying to access http://SERVER/VirtualDir/app/test.aspx This page has a lot of links and also images and CSS from the following folder structure. ...
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
2
by: alex | last post by:
when i bookmark a page in my app with a session id in the path, that session id doesn't get reset. It survives timeouts, browser and server restarts. I'm seeing this behaviour whether I use InProc...
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...
4
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images...
2
by: Daniel Malcolm | last post by:
Hi I just wanted to confirm that the "cookieless" attribute of the session section of the web.config file is an "all or nothing" setting. For some reason I thought that the following was the...
2
by: rk325 | last post by:
I have a question about cookies & browser permissions and turning off cookies when creating a web site (cookieless mode in web.config). I have a web site that of course uses Session variables....
0
by: vickeybird | last post by:
Hi, My current application requires me to use HTTPS and Cookieless Sessions. Ive just implemented HHTP Handler to redirect all http request to https as described by Matt Sollars at...
2
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...
1
by: Mark Olbert | last post by:
I'm building an ASPNET2 website which uses forms authentication but does not use the Microsoft-supplied membership providers (mostly because I don't want to create my own provider at this point, and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: 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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.