Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

The ASP.net State Service appears to have mysteriously disappeared from our web server's Services list after changing the .Net version in an IIS app pool to v4 and then changing it back to v3.5 again. We're not even sure if that's related.

Does anyone know how we can reinstall or somehow register the service?

This is on a Windows 2008 Server. All .Net versions are installed.

Thanks

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Running this command has reinstalled the ASP.Net State Service and session state is now working fine again. Still unsure of the original cause though.

C:\Windows\Microsoft.Net\Framework64\v4.0.30319\aspnet_regiis -i

share|improve this answer
    
Thanks, fixed it for me too. Be great to find out what the root cause is here. –  Mick Byrne May 19 '12 at 5:08

Excellent answer. I spent lot of time debugging this issue. Our website is working fine till yesterday and suddenly stopped working with error.

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

When checked ASP.net State Service is missing from the service list.

re-installing it as below helped to resolve the issue.

C:\Windows\Microsoft.Net\Framework64\v4.0.30319\aspnet_regiis -i
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.