473,385 Members | 1,766 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,385 software developers and data experts.

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 18 '05 #1
0 867

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

Similar topics

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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.