Error starting ASP.NET State Service

When you try to start the ASP.NET public service, the following error appears:

Windows failed to start the ASP.NET public service service on the local computer.

Error 2: the system cannot find the specified file.

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

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

So, I tried the same command in the v2 folder, and I got the error:

"An attempt was made to download a program with the wrong format."

thanks to advace for any help

+6
source share
2 answers

As stated here , it tries to download the 32-bit version while you need the 64-bit one. If applicable, open RegEdit (your own risk, etc.) 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 .

+12
source

You do not need to reinstall this service. Just search in the ASP.NET State Server services and start it. You can also configure automatic activation of this service in the settings.

0
source

Source: https://habr.com/ru/post/919752/


All Articles