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.Initiali zeRequest has not been called for this request yet. In each request, please first call ISessionIDManager.Initiali zeRequest 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.Initiali zeRequest has not been called for this request yet. In each request, please first call ISessionIDManager.Initiali zeRequest 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.Initiali zeRequest has not been called for this request yet. In each request, please first call ISessionIDManager.Initiali zeRequest before calling other methods.]
System.Web.SessionState.Se ssionIDMan ager.GetSe ssionID(Ht tpContext context) +149
System.Web.SessionState.Se ssionState Module.Del ayedGetSes sionId() +43
System.Web.SessionState.Se ssionState Module.OnR eleaseStat e(Object source, EventArgs eventArgs) +328
System.Web.SyncEventExecut ionStep.Sy stem.Web.H ttpApplica tion.IExec utionStep. Execute() +92
System.Web.HttpApplication .ExecuteSt ep(IExecut ionStep step, Boolean& completedSynchronously) +64
__________________________ __________ ____
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
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.Initiali
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.Initiali
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.Initiali
System.Web.SessionState.Se
System.Web.SessionState.Se
System.Web.SessionState.Se
System.Web.SyncEventExecut
System.Web.HttpApplication
__________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
But i don't really have any session declarations..
a few filling of arrays
some filling of static variables from ConfigurationSettings.AppS
some xml reading from files... to fill a hashtable...
thats about it..