在Windows Server上安装ASP.NET时失败,提示not enough storage is available to process the command

时间:2023-03-09 05:25:31
在Windows Server上安装ASP.NET时失败,提示not enough storage is available to process the command

今天在部署ASP.NET网站时出现IIS 500.21错误。环境是Windows Server 2012 +IIS8

于是查找解决方案,发现网上的信息都说是需要重装.NET framerwork4.0即可,而我在执行那段重装4.0的命令之后还是失败。

发现原来是我在安装IIS时没有把Application Development 下的ASP.NET勾选导致的,这也提醒我们在安装的时候注意勾选这个(默认是不勾选的)

于是从服务管理其从新添加了ASP.NET这一选项,从而出现了标题中的错误。

起初以为确实是内存不足的原因,后来想想内存是够的,于是想到可能是Windows Server系统配置的原因。

于是找到这个答案,搬运一下:

1. Click on Start > Run > regedit & press Enter
2. Find this key nameHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters
3. Locate IRPStackSize
4. If this value does not exist Right Click on Parameters key and Click on New > Dword Value and type inIRPStackSize under the name.
5. The name of the value must be exactly (combination of uppercase and lowercase letters) the same as what I have above.
6. Right Click on the IRPStackSize and click on Modify
7. Select Decimal enter a value higher than 15(Maximum Value is 50 decimal) and Click Ok
8. You can close the registry editor and restart your computer.

原文链接:https://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/not-enough-storage-is-available-to-process-this/9624b57d-ea4c-41fa-aae0-b52e99b69fab