gpt4 book ai didi

c# - 启动 ASP.NET 状态服务时出错

转载 作者:太空狗 更新时间:2023-10-29 21:05:54 25 4
gpt4 key购买 nike

尝试启动 ASP.NET 状态服务时出现以下错误:

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

Error 2: The system cannot find the file specified.

我在 google 上找到的所有内容都告诉我在命令提示符处转到 %windir%\Microsoft.NET\Framework\v1.1.4322 文件夹,然后键入以下命令: aspnet_regiis.exe -ir

我做了但没有解决问题。在我的例子中,可执行文件的路径是 2.0:C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe

所以我在 v2 文件夹上尝试了相同的命令,但我得到了错误:

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

提前感谢您的帮助

最佳答案

如前所述here ,它正在尝试加载 32 位版本,而您需要 64 位版本。如果适用,请打开 RegEdit(风险自负等)并更改 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\ImagePath%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_state.exe%SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_state.exe .

关于c# - 启动 ASP.NET 状态服务时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11344235/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com