Windows 8 Pro 下无法启动ASPNET_STATE 服务的解决办法

时间:2021-08-25 17:09:45
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\aspnet_state]
"Type"=dword:00000010
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,2e,\
  00,4e,00,45,00,54,00,5c,00,46,00,72,00,61,00,6d,00,65,00,77,00,6f,00,72,00,\
  6b,00,5c,00,76,00,34,00,2e,00,30,00,2e,00,33,00,30,00,33,00,31,00,39,00,5c,\
  00,61,00,73,00,70,00,6e,00,65,00,74,00,5f,00,73,00,74,00,61,00,74,00,65,00,\
  2e,00,65,00,78,00,65,00,00,00
"DisplayName"="ASP.NET 状态服务"
"ObjectName"="NT AUTHORITY\\NetworkService"
"Description"="为 ASP.NET 提供进程外会话状态支持。如果此服务被停止,进程外请求将得不到处理。如果此服务被禁用,任何显式依赖它的服务将无法启动。"
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
  00,01,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\aspnet_state\Linkage]
"Export"=hex(7):34,00,2e,00,30,00,2e,00,33,00,30,00,33,00,31,00,39,00,2e,00,30,\
  00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\aspnet_state\Parameters]
"Port"=dword:0000a5b8
"AllowRemoteConnection"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\aspnet_state\Performance]
"Library"="aspnet_counters.dll"
"Open"="OpenStateCounters"
"Close"="CloseStateCounters"
"Collect"="CollectStateCounters"
"PerfIniFile"="aspnet_state_perf.ini"
"Last Counter"=dword:000035de
"Last Help"=dword:000035df
"First Counter"=dword:00003504
"First Help"=dword:00003505
"Object List"="13572"


win7 升级到win8 后发现没有asp.net state 服务,直接执行对应目录下的aspnet_state.exe 报错。

研究了几个小时发现只要把win7 注册表的的[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\aspnet_state] 节点配置导入,重启计算机后即可。

我的这个节点的配置是:(见上面)。

可以直接贴到记事本保存为.reg 格式,双击即可。