?
Solved

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

Posted on 2006-05-31
2
Medium Priority
?
728 Views
Last Modified: 2010-08-05
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
0
Comment
Question by:ianinspain
2 Comments
 
LVL 27

Accepted Solution

by:
Sammy Ageil earned 1500 total points
ID: 16798890
Check your global.asax for session declarations. its just telling you some session are declared before the session manager starts
0
 

Author Comment

by:ianinspain
ID: 16806821
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..

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question