ASP.Net部署网站后提示HTTP Error 404.2 – Not Found的解决方法
来源:互联网 发布:广州学淘宝美工 编辑:程序博客网 时间:2024/05/07 06:01
之前迁移一个网站到新的Server上出现了“HTTP Error 404.2 – Not Found”的提示,看了错误页面的详细信息,好吧我并没有弄明白是什么原因导致的。在Google上找了一下很快就发现了相关的解决方法,根据指导进行设置很快就把问题解决了。其实对IIS熟悉的话根据错误提示就能知道是哪里设置出错了,可惜我并不熟悉,这里记录一下顺便弄清楚问题。
服务器环境:Windows Server 2008 R2 + IIS 7.5
错误提示:HTTP Error 404.2 – Not Found
错误详细信息:由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面. (The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.)
解决方法:根据错误详细信息得知是因为“ISAPI 和 CGI 限制”设置的原因导致的问题,再仔细看Handler的提示是“PageHandlerFactory-ISAPI-4.0_32bit”,到“ISAPI和CGI限制(ISAPI and CGI Restrictions)”设置允许相关ASP.NET版本号即可。我的是.Net 4.0 32bit,设置“C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll”对应的ASP.NET v4.0.30319为允许(Allowed)即可。
注意:1.“ISAPI 和 CGI 限制”在IIS的根节点,而不是虚拟目录的节点上;
2. 设置完重启(Restart)一下网站,或者通过执行命令行“iisreset”重启IIS。
- ASP.Net部署网站后提示HTTP Error 404.2 – Not Found的解决方法
- ASP.Net部署网站后提示HTTP Error 404.2 – Not Found的解决方法
- asp.net网站发布后提示Ambiguous match found
- iis部署asp.net mvc网站出错的解决方法
- ASP.NET+IIS+Access发布网站出现HTTP 错误 404.0 - Not Found
- crontab提示command not found的解决方法
- weblogic 部署后出现Error 404--Not Found
- error deployer not found:github的解决方法
- 打补丁后ASP.NET网站无法访问的另类解决方法
- 执行 pod install后提示 -bash: pod: command not found(未找到命令)的解决方法
- Win7部署asp.net网站问题---HTTP 错误 500.0 - Internal Server Error 调用 LoadLibraryEx 失败
- centos7 yum 更新出现 [Errno 14] HTTP Error 404 - Not Found 的解决方法
- HTTP Error 404.3 - Not Found
- JW+MEDIA+PLAYER提示video+not+found的解决方法
- Xcode提示“Valid signing identity not found”的解决方法
- linux下提示slice2cpp:command not found的解决方法
- ffmpeg + x264 编译提示libx264 not found 的解决方法
- Xcode提示“Valid signing identity not found”的解决方法
- 第五周项目2对象作为数据成员
- 用Cmake 编译cuda程序
- 微软企业库调用Oracle存储过程返回(1个或多个)数据集
- 揭开网络编程常见API的面纱【下】
- android开发学习笔记系列(5)--fragment与viewpage
- ASP.Net部署网站后提示HTTP Error 404.2 – Not Found的解决方法
- 男科医院到内江那家医院看正规
- 在Ubuntu上为Android系统编写Linux内核驱动程序(老罗学习笔记1)
- Go语言的参数解析(flag)
- 自贡做包皮手术哪家医院好多少钱
- Head First设计模式-命令模式
- 蓝桥杯 兰顿蚂蚁 (DFS+模拟)
- ruby中类和对象的结构图
- 自贡做包皮手术价格多少