win10 Process Activation Service 报错。
WAS 报错,启动不了。
我要做web开发 , 用ASP.NET。新装Win10 LTSC 21H2 , 再安装其他系统组件.
其他系统组件顺序:
1. IIS
2. Process Activation Service
3. Dot NET.3.5 , 4.0
以上三步装完之后,测试IIS能运行,应用池正常,部署站点能访问。
4. Visual Studio 2015 Update3 (7.2G)
装好VS2015后,也能访问,但发现注册表被修改了。
但没有重启win10, 所以 ,WAS还没有受影响,还能正常。
但重启win10后,发现WAS停止了,报错:
错误9:存储控制块地址无效。
网络上很多办法都尝试 , 没有用。
方法一:重新安装Windows Process Activation Service服务,具体方法就是打开启动或关闭windows功能,勾上服务。但是这种方法对我的电脑不起作用。
方法二:C盘缺少C:\inetpub\temp\appPools这个文件夹。但我的盘符上有这个文件夹,以上方法都行不通。
方法三:用dotnetfx_cleanup_tool , 把所有.NET FrameWork清除,重启Win10, 勾上服务Process activation service(如果已安装,先卸载重启后再安装), 重新安装.NET FrameWork
后来C-S-D-N 有篇文章启发了我,找一台一样的Win10 LTSC系统 ,配置好WAS服务之后,就找注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS,右键--导出--was.reg。 拿过来,我先把WAS目录删除,再运行was.reg导入注册表。启动WAS服务, 竟然运行起来了。
不敢独享,注册表如下:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS]
"DependOnService"=hex(7):52,00,50,00,43,00,53,00,53,00,00,00,00,00
"Description"="@%windir%\\system32\\inetsrv\\iisres.dll,-30002"
"DisplayName"="@%windir%\\system32\\inetsrv\\iisres.dll,-30001"
"ErrorControl"=dword:00000001
"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
"ImagePath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,\
79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,76,00,63,00,68,00,6f,\
00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,6b,00,20,00,69,00,69,00,\
73,00,73,00,76,00,63,00,73,00,00,00
"ObjectName"="localSystem"
"RequiredPrivileges"=hex(7):53,00,65,00,41,00,73,00,73,00,69,00,67,00,6e,00,50,\
00,72,00,69,00,6d,00,61,00,72,00,79,00,54,00,6f,00,6b,00,65,00,6e,00,50,00,\
72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,41,00,75,\
00,64,00,69,00,74,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,\
00,00,53,00,65,00,42,00,61,00,63,00,6b,00,75,00,70,00,50,00,72,00,69,00,76,\
00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,68,00,61,00,6e,00,\
67,00,65,00,4e,00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,\
00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,61,00,74,00,\
65,00,47,00,6c,00,6f,00,62,00,61,00,6c,00,50,00,72,00,69,00,76,00,69,00,6c,\
00,65,00,67,00,65,00,00,00,53,00,65,00,44,00,65,00,62,00,75,00,67,00,50,00,\
72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,49,00,6d,\
00,70,00,65,00,72,00,73,00,6f,00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,\
76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,49,00,6e,00,63,00,72,\
00,65,00,61,00,73,00,65,00,51,00,75,00,6f,00,74,00,61,00,50,00,72,00,69,00,\
76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,52,00,65,00,73,00,74,\
00,6f,00,72,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,\
00,00,53,00,65,00,54,00,63,00,62,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,\
00,67,00,65,00,00,00,00,00
"ServiceSidType"=dword:00000000
"Start"=dword:00000003
"SvcHostSplitDisable"=dword:00000001
"Type"=dword:00000020
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters]
"AccessDeniedMessage"="Error: Access is Denied."
"InstallPath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6e,00,65,00,74,00,\
73,00,72,00,76,00,00,00
"MajorVersion"=dword:0000000a
"MinorVersion"=dword:00000000
"ServiceDll"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6e,00,65,00,74,00,\
73,00,72,00,76,00,5c,00,69,00,69,00,73,00,77,00,33,00,61,00,64,00,6d,00,2e,\
00,64,00,6c,00,6c,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters\ListenerAdapters]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters\ListenerAdapters\msmq.formatname]
"Name"="\\\\.\\pipe\\wbhstipmaf107887-e7ef-460d-b271-1765ac4a4add"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters\ListenerAdapters\net.msmq]
"Name"="\\\\.\\pipe\\wbhstipm13cd0259-8e97-4b7c-b6ff-05ecfa60eede"
注意事项
如果是其他服务出问题,实在没有办法情况下,用虚拟机装个一模一样系统,做一样的配置,导出注册表来使用