一、问题
运行网上的一个IIS+ASP示例的时候出现了这个问题,百度了一圈,发现普遍的两种解决方案
1、%windir%system32inetsrvappcmd unlock config -section:system.webServer/modules
2、所谓的IIS未打开ASP功能
其中方案1,对于新手来说,根本找不到相关的配置节点;方案2,不知道哪个人发的,就算打开了也没用
二、方便的解决办法
找到官网https://docs.microsoft.com/zh-CN/troubleshoot/iis/http-error-500-19-webpage#hresult-code-0x80070021
找到相应的错误代码
点击给的链接
找到里面的给的文件,利用windows的 运行 取目录
打开相应文件
修改成Allow即可
最后页面可以顺利访问