I have a website using Asp.Net 2.0 that is Ajax enabled and
am experiencing a problem that I have been unable to resolve.
Everything works fine until the session times out.
Then, when this has timed out, I get this error in a Windows
Internet Explorer message box: -
Sys.WebForms.PageRequestManagerParserErrorException: The
message received from the server could not be parsed. Common causes for this
error are when the response is modified by calls to Response.Write(), response
filters, HttpModules, or server trace is enabled.
Details: Error parsing near ‘<script type=’text/j’.
Then the site will just not function, even if
refreshed. I have to start a new
Internet Explorer for it to work again.
Firstly, does anyone know what is likely to be or could be
causing this error?
There is also an anomoly, though.
The site is hosted on a shared server. If I change the timeout for session via
web.config, say to 1 or 2 minutes, then when the session expires and the site
behaves as I would expect (as per the code).
However, if left for more than 20 minutes, then the problem
is there again, even though the session is set to 1 or 2 minutes.
Is there a step here or something I am missing? Is there another timeout I need to deal
with?
Any help on this appreciated.
Thanks,
Darren