HTTP错误404.2 - 未找到 [英] HTTP Error 404.2 - Not Found

查看:116
本文介绍了HTTP错误404.2 - 未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我创建了一个网站,并以编程方式成功地创建了我的网站,但是我给出了错误。



错误Summury:

HTTP错误404.2 - 未找到

由于Web服务器上的ISAPI和CGI限制列表设置,无法提供您请求的页面



最有可能的原因:

•未找到此请求的处理程序映射。可能必须安装一个功能。

•服务器上未启用所请求资源的Web服务扩展。

•扩展名的映射指向错误位置。

•扩展程序在浏览器或Web服务器中拼写错误。



您可以尝试的事项:

•安装处理此请求的功能。例如,如果.ASPX页面出现此错误,则可能必须通过IIS安装程序安装ASP.NET。

•验证服务器上是否已启用所请求的Web服务扩展。

1.打开IIS管理器并导航到服务器级别。

2.在功能视图中,双击ISAPI和CGI限制以验证Web服务扩展设置为允许。

3.如果扩展名不在列表中,请单击操作窗格中的添加。

4.在添加ISAPI和CGI限制对话框中,在ISAPI或CGI路径框中键入.dll或.exe文件的路径,或单击浏览导航到文件的位置。

5.在说明框中,键入简要说明限制的描述。

6.(可选)选中允许执行扩展路径以允许限制自动运行。如果不选中此选项,则限制状态为不允许,这是默认值。您可以稍后通过选择它并单击Actions窗格上的Allow来允许限制。

7.单击OK。

注意:确保此Web服务扩展或CGI是在将Web服务器添加到列表之前需要它。

•验证扩展名的位置是否正确。

•确认扩展的URL在浏览器和Web服务器中拼写正确。

•创建跟踪规则以跟踪此HTTP状态代码的失败请求。有关为失败的请求创建跟踪规则的更多信息,请单击此处。



我操作iis服务器并更改isapiand cgi设置没有使用相同的错误是给予



我哪里错了写代码?

hi all I created a website and programmatically puplished my website successfully puplished but iis giving error.

Error Summury:
HTTP Error 404.2 - Not Found
The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server

most likely causes:
•No handler mapping for this request was found. A feature may have to be installed.
•The Web service extension for the requested resource is not enabled on the server.
•The mapping for the extension points to the incorrect location.
•The extension was misspelled in the browser or the Web server.

Things you can try:
•Install the feature that handles this request. For example, if you get this error for an .ASPX page, you may have to install ASP.NET via IIS setup.
•Verify that the Web service extension requested is enabled on the server.
1.Open the IIS Manager and navigate to the server level.
2.In the Features view, double-click ISAPI and CGI Restrictions to verify that the Web service extension is set to Allowed.
3.If the extension is not in the list, click Add in the Actions pane.
4.In the Add ISAPI and CGI Restrictions dialog box, type the path of the .dll or .exe file in the ISAPI or CGI Path box, or click Browse to navigate to the location of the file.
5.In the Description box, type a brief description of the restriction.
6.(Optional) Check "Allow extension path to execute" to allow the restriction to run automatically. If you do not check this option, the restriction status is Not Allowed, which is the default. You can allow the restriction later by selecting it and clicking Allow on the Actions pane.
7.Click OK.
NOTE: Make sure that this Web service extension or CGI is needed for your Web server before adding it to the list.
•Verify that the location of the extension is correct.
•Verify that the URL for the extension is spelled correctly both in the browser and the Web server.
•Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

I opne iis server and change isapiand cgi settings no use same error is giving

where I wrongly write coding?

推荐答案





确保cgi / isapi限制中列出的4.0项已启用(允许)
Hi,

Make sure the 4.0 items listed in the cgi / isapi restrictions are enabled (allowed)


这篇关于HTTP错误404.2 - 未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆