Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error starting ASP.NET State Service

I get the following error when trying to start the ASP.NET State Service:

Windows could not start the ASP.NET State Service service on Local Computer.

Error 2: The system cannot find the file specified.

Everything I found on google told me to go to the %windir%\Microsoft.NET\Framework\v1.1.4322 folder at the command prompt, and then type the following command: aspnet_regiis.exe -ir

which I did and didn't solve the problem. The path to the executable in my case is 2.0: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe.

So I tried the same comand on the v2 folder and I get the error:

"An attempt was made to load a program with an incorrect format".

thanks in advace for any help

like image 453
Diego Avatar asked Jul 05 '12 12:07

Diego


People also ask

What is ASP NET state service used for?

The ASP.NET state service is used to manage session state on a computer. The ASP.NET state service is installed by default when Microsoft® Windows® Server 2003 is installed.

How do I know asp net state service is started?

In the details pane, right-click ASP.NET State Service, and then click Properties. On the General tab, in the Startup type list box, click Automatic. Under Service status, click Start, and then click OK. The state service starts automatically when the Web server is restarted.

Why won't my ASP NET state service start on Windows Server?

You have a computer that is running Windows Server. The ASP.NET State Service is installed as part of Internet Information Services (IIS). An installed service depends on the ASP.NET State Service. You upgrade the Microsoft .NET Framework 3.51 to the .NET Framework 4.0. Windows could not start the <service name> service on <computer name>.

What happened to ASP NET state service in IIS?

ASP.Net State Service missing from Services. 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.

Which service depends on the ASP NET state service?

An installed service depends on the ASP.NET State Service. You upgrade the Microsoft .NET Framework 3.51 to the .NET Framework 4.0. Windows could not start the <service name> service on <computer name>. Error 1075: The dependency service does not exist or has been marked for deletion.

Could not start the <service name> service?

Windows could not start the <service name> service on <computer name>. Error 1075: The dependency service does not exist or has been marked for deletion. You also notice that the ASP.NET State Service is no longer listed in the Services Management console. This is a known issue that occurs when you update .NET Framework.


1 Answers

As stated here, it's trying to load the 32-bit version while you need the 64-bit. If this is applicable, open RegEdit (own risk and so on) and change HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\ImagePath from %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe to %SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_state.exe.

like image 54
CodeCaster Avatar answered Oct 12 '22 17:10

CodeCaster