Click to See Complete Forum and Search --> : How to start asp.net state service.


wowrang
10-02-2006, 09:33 AM
Hi,
My problem is.
When I tried to start asp.net state service in control panel it displays error saying that 'this service is marked for deletion'. when I restart the machine this service is disappears from the service list in control panel. I followed below steps to bring that back , but it is not showing up in t he service list.
I did following things. 1. Net start aspnet_state.exe , when i execute this command i am getting this error. "The service name is invalid".
So i ran this command instalutil aspnet_state.exe , but it throws following error. "Exception occurred while initializing the installation:
System.BadImageFormatException: The format of the file 'aspnet_state.exe' is inv
alid.." .
Please help me to bring that service back to the service list.
Thanks alot.

sirpelidor
10-02-2006, 05:11 PM
did you install both .net 1.x and .net 20 then tried to delete one of 'em?

Sounds like you may upgraded to .net20 but aspnet_state.exe still mapped do 1.x?

wowrang
10-03-2006, 10:19 AM
Thanks for your reply sirpelidor. Actually i have only one version of .net framwork installed in my machine. Any idea :(

sirpelidor
10-03-2006, 12:16 PM
1) what version of .net?
2) are u running a 64bit computer?
3) check your event log and see if it reports anything...
4) has it always been working in the pass and suddenly stopped working?
5) do you have vs.net installed?
6) have you checked your registry key? (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\aspnet_state\) and make sure everything is valid?

wowrang
10-03-2006, 04:45 PM
Sirpelidor,
I am using Intel Xeon 3.6GHz windows2000, i dont find any thing related to application state in my event log and. Its suddenly stopped working becuase. Before it start working , I clicked the start button in service , it " says this service is marked for deletion" after machine restart its disappars from the service list. There is no registry key found in the register related to aspnet_state. I have two boxes shall i copy the registry entry from one box and execute that in non working box, is that going to help to slove this problem?

Thanks.

sirpelidor
10-03-2006, 05:01 PM
There is no registry key found in the register related to aspnet_state. I have two boxes shall i copy the registry entry from one box and execute that in non working box, is that going to help to slove this problem?


I don't have any admin background, so I don't know how to "copy" registry entry.... but it is clear to me that the problem is at the registry key. I suggest reinstall .net (and SDK) framework.

wowrang
10-09-2006, 08:43 AM
Problem solved.
I used following commands to getback the asp.net start service in the service list.
aspnet_regiis.exe -u
aspnet_regiis.exe -i
aspnet_regiis.exe -c


Thanks sirpelidor for your help. :)

sirpelidor
10-09-2006, 01:25 PM
aaahh the great aspnet_iisreg to reinstall the framework. Thank you for the tips :)