IIS Worker Process NullReferenceException at SessionState.SessionStateItemCollection.get_Item(Int32)What is a NullReferenceException, and how do I fix it?WCF ASynchronous calls within a Windows forms Application using a timerWindows Server 2012 System.IndexOutOfRangeExceptionBuilding a Windows Service with .NET 4.5Cannot open any CSHTML file in a certain projectRoleEnvironmentException When Deploying Worker Role To AzureReading an XML file results in Termination due to an unhandled exceptionWPF: Investigate WPF app crash by unhandled exceptionsError in Rx runtimewpf application runs in debug mode but doesn't run without debugging

"Automatic is not a valid StreamPoints specification"

Gold Battle KoTH

Need help with modelling a cylinder with a piece cut out?

On the expression "sun-down"

Is there a general term for the items in a directory?

Phase portrait of a system of differential equations

What license to choose for my PhD thesis?

Who's behind community AMIs on Amazon EC2?

What is Modern Vipassana?

Do moonless nights cause dim light to become darkness, and bright light (e.g. from torches) to become dim light?

Is law enforcement responsible for damages made by a search warrant?

Can an unintentional murderer leave Ir Miklat for Shalosh Regalim?

How can I perform a deterministic physics simulation?

Any information about the photo with Army Uniforms

Accurately recalling the key - can everyone do it?

Approximating an expression for a potential

Being told my "network" isn't PCI compliant. I don't even have a server! Do I have to comply?

Why did the United States not resort to nuclear weapons in Vietnam?

Reasons for using monsters as bioweapons

Is it moral to remove/hide certain parts of a photo, as a photographer?

HackerRank Implement Queue using two stacks Solution

Declaring a visitor to the UK as my "girlfriend" - effect on getting a Visitor visa?

How to understand "...to hide the evidence of mishandled magic, or else hidden by castle-proud house-elves" in this sentence

Can I say "Gesundheit" if someone is coughing?



IIS Worker Process NullReferenceException at SessionState.SessionStateItemCollection.get_Item(Int32)


What is a NullReferenceException, and how do I fix it?WCF ASynchronous calls within a Windows forms Application using a timerWindows Server 2012 System.IndexOutOfRangeExceptionBuilding a Windows Service with .NET 4.5Cannot open any CSHTML file in a certain projectRoleEnvironmentException When Deploying Worker Role To AzureReading an XML file results in Termination due to an unhandled exceptionWPF: Investigate WPF app crash by unhandled exceptionsError in Rx runtimewpf application runs in debug mode but doesn't run without debugging






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















A Kentico-9 site for a client of mine has been crashing at seemingly random times.



I've checked the windows server error logs, and found the stack trace of the error.



Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at System.Web.SessionState.SessionStateItemCollection.get_Item(Int32)
at System.Web.SessionState.HttpSessionStateContainer.get_Item(Int32)
at System.Web.Util.AspCompatApplicationStep.AnyStaObjectsInSessionState(System.Web.SessionState.HttpSessionState)
at System.Web.HttpApplicationFactory.FireSessionOnEnd(System.Web.SessionState.HttpSessionState, System.Object, System.EventArgs)
at System.Web.SessionState.SessionOnEndTargetWorkItem.RaiseOnEndCallback()
at System.Web.Util.WorkItem.CallCallbackWithAssert(System.Web.Util.WorkItemCallback)
at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


From there i've setup dumping the application pool process on the exception, hoping that it would lead to some more information about it, but that doesn't seem to contain anything new.



Any help would be appreciated.










share|improve this question
























  • Right now I can only comment on this as there is no clear answer. It seems, that running thread has terminated and it tries to terminate the session, but session is no longer available. Dump would be a good check as you can at least see threads (unless one that was terminated is not there). Also some sort of information regarding what was happening within the application would be good. Lastly, how is the site configured regarding incoming traffic, load balancing and session storage?

    – Michal Samuhel
    Mar 27 at 7:18











  • The site gets approximately 7k unique user hits a day. No load balancing at present, session storage is set to InProc. In the dump, the thread, call stack and the memory address it's trying to access are there, but it seems like it's only the worker process and not any application code.

    – Bryce J
    Mar 28 at 22:30

















0















A Kentico-9 site for a client of mine has been crashing at seemingly random times.



I've checked the windows server error logs, and found the stack trace of the error.



Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at System.Web.SessionState.SessionStateItemCollection.get_Item(Int32)
at System.Web.SessionState.HttpSessionStateContainer.get_Item(Int32)
at System.Web.Util.AspCompatApplicationStep.AnyStaObjectsInSessionState(System.Web.SessionState.HttpSessionState)
at System.Web.HttpApplicationFactory.FireSessionOnEnd(System.Web.SessionState.HttpSessionState, System.Object, System.EventArgs)
at System.Web.SessionState.SessionOnEndTargetWorkItem.RaiseOnEndCallback()
at System.Web.Util.WorkItem.CallCallbackWithAssert(System.Web.Util.WorkItemCallback)
at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


From there i've setup dumping the application pool process on the exception, hoping that it would lead to some more information about it, but that doesn't seem to contain anything new.



Any help would be appreciated.










share|improve this question
























  • Right now I can only comment on this as there is no clear answer. It seems, that running thread has terminated and it tries to terminate the session, but session is no longer available. Dump would be a good check as you can at least see threads (unless one that was terminated is not there). Also some sort of information regarding what was happening within the application would be good. Lastly, how is the site configured regarding incoming traffic, load balancing and session storage?

    – Michal Samuhel
    Mar 27 at 7:18











  • The site gets approximately 7k unique user hits a day. No load balancing at present, session storage is set to InProc. In the dump, the thread, call stack and the memory address it's trying to access are there, but it seems like it's only the worker process and not any application code.

    – Bryce J
    Mar 28 at 22:30













0












0








0








A Kentico-9 site for a client of mine has been crashing at seemingly random times.



I've checked the windows server error logs, and found the stack trace of the error.



Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at System.Web.SessionState.SessionStateItemCollection.get_Item(Int32)
at System.Web.SessionState.HttpSessionStateContainer.get_Item(Int32)
at System.Web.Util.AspCompatApplicationStep.AnyStaObjectsInSessionState(System.Web.SessionState.HttpSessionState)
at System.Web.HttpApplicationFactory.FireSessionOnEnd(System.Web.SessionState.HttpSessionState, System.Object, System.EventArgs)
at System.Web.SessionState.SessionOnEndTargetWorkItem.RaiseOnEndCallback()
at System.Web.Util.WorkItem.CallCallbackWithAssert(System.Web.Util.WorkItemCallback)
at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


From there i've setup dumping the application pool process on the exception, hoping that it would lead to some more information about it, but that doesn't seem to contain anything new.



Any help would be appreciated.










share|improve this question














A Kentico-9 site for a client of mine has been crashing at seemingly random times.



I've checked the windows server error logs, and found the stack trace of the error.



Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at System.Web.SessionState.SessionStateItemCollection.get_Item(Int32)
at System.Web.SessionState.HttpSessionStateContainer.get_Item(Int32)
at System.Web.Util.AspCompatApplicationStep.AnyStaObjectsInSessionState(System.Web.SessionState.HttpSessionState)
at System.Web.HttpApplicationFactory.FireSessionOnEnd(System.Web.SessionState.HttpSessionState, System.Object, System.EventArgs)
at System.Web.SessionState.SessionOnEndTargetWorkItem.RaiseOnEndCallback()
at System.Web.Util.WorkItem.CallCallbackWithAssert(System.Web.Util.WorkItemCallback)
at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


From there i've setup dumping the application pool process on the exception, hoping that it would lead to some more information about it, but that doesn't seem to contain anything new.



Any help would be appreciated.







c# asp.net iis kentico






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 at 1:23









Bryce JBryce J

11 silver badge1 bronze badge




11 silver badge1 bronze badge















  • Right now I can only comment on this as there is no clear answer. It seems, that running thread has terminated and it tries to terminate the session, but session is no longer available. Dump would be a good check as you can at least see threads (unless one that was terminated is not there). Also some sort of information regarding what was happening within the application would be good. Lastly, how is the site configured regarding incoming traffic, load balancing and session storage?

    – Michal Samuhel
    Mar 27 at 7:18











  • The site gets approximately 7k unique user hits a day. No load balancing at present, session storage is set to InProc. In the dump, the thread, call stack and the memory address it's trying to access are there, but it seems like it's only the worker process and not any application code.

    – Bryce J
    Mar 28 at 22:30

















  • Right now I can only comment on this as there is no clear answer. It seems, that running thread has terminated and it tries to terminate the session, but session is no longer available. Dump would be a good check as you can at least see threads (unless one that was terminated is not there). Also some sort of information regarding what was happening within the application would be good. Lastly, how is the site configured regarding incoming traffic, load balancing and session storage?

    – Michal Samuhel
    Mar 27 at 7:18











  • The site gets approximately 7k unique user hits a day. No load balancing at present, session storage is set to InProc. In the dump, the thread, call stack and the memory address it's trying to access are there, but it seems like it's only the worker process and not any application code.

    – Bryce J
    Mar 28 at 22:30
















Right now I can only comment on this as there is no clear answer. It seems, that running thread has terminated and it tries to terminate the session, but session is no longer available. Dump would be a good check as you can at least see threads (unless one that was terminated is not there). Also some sort of information regarding what was happening within the application would be good. Lastly, how is the site configured regarding incoming traffic, load balancing and session storage?

– Michal Samuhel
Mar 27 at 7:18





Right now I can only comment on this as there is no clear answer. It seems, that running thread has terminated and it tries to terminate the session, but session is no longer available. Dump would be a good check as you can at least see threads (unless one that was terminated is not there). Also some sort of information regarding what was happening within the application would be good. Lastly, how is the site configured regarding incoming traffic, load balancing and session storage?

– Michal Samuhel
Mar 27 at 7:18













The site gets approximately 7k unique user hits a day. No load balancing at present, session storage is set to InProc. In the dump, the thread, call stack and the memory address it's trying to access are there, but it seems like it's only the worker process and not any application code.

– Bryce J
Mar 28 at 22:30





The site gets approximately 7k unique user hits a day. No load balancing at present, session storage is set to InProc. In the dump, the thread, call stack and the memory address it's trying to access are there, but it seems like it's only the worker process and not any application code.

– Bryce J
Mar 28 at 22:30












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368452%2fiis-worker-process-nullreferenceexception-at-sessionstate-sessionstateitemcollec%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368452%2fiis-worker-process-nullreferenceexception-at-sessionstate-sessionstateitemcollec%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript