Link to home
Start Free TrialLog in
Avatar of ianinspain
ianinspain

asked on

Error - ISessionIDManager.InitializeRequest has not been called for this request yet.

Hi there,

I keep getting this problem... can anyone help?  

Its when i first put visual studio into DEBUG and then from IE/firefox call a page and i have it do a Server.Transfer to error.aspx where i give a custom error.

So in the case of the page needing to do Server.Transfer on the first page it servers it gives me the following error(see below) BUT If i then refresh ... it works fine and continues to work fine on this page and other pages i use.

If the first page that is served doesn't give an error then every page after that gives my custom error (server.transffer) is fine...

Also if it is not in DEBUG then this problem never happens...

Strange eh? Anybody seen this and know how to get round it??

Thanks in advance for any info..

Server Error in '/MyWeb' Application.
________________________________________
ISessionIDManager.InitializeRequest has not been called for this request yet. In each request, please first call ISessionIDManager.InitializeRequest before calling other methods.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: ISessionIDManager.InitializeRequest has not been called for this request yet. In each request, please first call ISessionIDManager.InitializeRequest before calling other methods.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): ISessionIDManager.InitializeRequest has not been called for this request yet. In each request, please first call ISessionIDManager.InitializeRequest before calling other methods.]
   System.Web.SessionState.SessionIDManager.GetSessionID(HttpContext context) +149
   System.Web.SessionState.SessionStateModule.DelayedGetSessionId() +43
   System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +328
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
ASKER CERTIFIED SOLUTION
Avatar of Sammy
Sammy
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ianinspain
ianinspain

ASKER

hi thanks....

But i don't really have any session declarations..

a few filling of arrays

some filling of static variables from ConfigurationSettings.AppSettings

some xml reading from files... to fill a hashtable...

thats about it..