Um blog sobre nada

Um conjunto de inutilidades que podem vir a ser úteis

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

Posted by Diego em Agosto 3, 2012


I was getting 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.

 

clip_image001

 

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  C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe.

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

 

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

 

The problem was that I was at a 64 bit computer and the state server was pointing to the wrong Framework.

To solve that, just open regedit HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\ImagePath

and change:


%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe

To

%SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_state.exe.

Deixe uma Resposta

Preencha os seus detalhes abaixo ou clique num ícone para iniciar sessão:

Logótipo da WordPress.com

Está a comentar usando a sua conta WordPress.com Terminar Sessão / Alterar )

Imagem do Twitter

Está a comentar usando a sua conta Twitter Terminar Sessão / Alterar )

Facebook photo

Está a comentar usando a sua conta Facebook Terminar Sessão / Alterar )

Google+ photo

Está a comentar usando a sua conta Google+ Terminar Sessão / Alterar )

Connecting to %s

 
%d bloggers like this: