473,472 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sessionStateHistorySize

Hi All,

I got a problem. The application is written on C# for the regular IE and for
the Mobile device, the initial page checks for a remote browser version and
redirects to a required subset. It's easy.

The same application with the same settings works fine on a regular IE, but
it causes the problems on a mobile device. I can return a few pages back,
then press a button on the returned page and get the following message:

Server Error in
'ApplicationName'
Application.
-------------------------------
The page requires session state that is no longer available. Either the
session has expired, the client didn not sent a valid session cookie, or the
session state history is too small. Try increasing the history size or
session expiry limit.

I repeat that the same application but with regular page controls works fine
on usual XP, but almost the same pages cause a problem on the mobile device.
What is the easiest solution? I tried to allow cookies, I tried to add these
strings to the Web.Config:

<mobileControls
cookielessDataDictionaryType="System.Web.Mobile.Co okielessData"
sessionStateHistorySize="10"
/>
If these strings are uncommented the application doesn't start at all
showing the error in these strings. All these configuration settings are
stolen from the Internet examples and theretically should work fine but they
don't. Is is a physical limitation of the Mobile Device that I'm using? The
same aplication works fine if I don't use the BackSpace button to go back.

-----------------------------

I also tried to hide the error page and substitute my own htm page using
these settings in Web.Config:

<customErrors
defaultRedirect="http://192.168.123.123/APP/APPError.htm"
mode="Off">
<error statusCode="500"
redirect="http://192.168.123.123/APP/APPError.htm"/>
</customErrors>

It doesn't work if I use the short relative URL like APPError.htm or
/APPError.htm or the full absolute URL. Why? Mobile problems?

Thanks,
Dmitri

Nov 16 '05 #1
0 1863

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

Similar topics

0
by: hn | last post by:
Hi In my asp.net application I use Response.redirect to go from pages to pages. Everything is fine until a search function on a page is performed (it's a sql select and the result is bound to a...
0
by: Just D | last post by:
Hi All, I got a problem. The application is written on C# for the regular IE and for the Mobile device, the initial page checks for a remote browser version and redirects to a required subset....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.