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

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?