Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 是GenericeErrorPage.htm中的以下错误_.net_Asp.net_Iis_Web Config - Fatal编程技术网

.net 是GenericeErrorPage.htm中的以下错误

.net 是GenericeErrorPage.htm中的以下错误,.net,asp.net,iis,web-config,.net,Asp.net,Iis,Web Config,以下错误是否与GenericeErrorPage.htm中的错误相同 Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error se

以下错误是否与GenericeErrorPage.htm中的错误相同

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
“/”应用程序中出现服务器错误。 -------------------------------------------------------------------------------- 运行时错误 描述:服务器上发生应用程序错误。此应用程序的当前自定义错误设置阻止远程查看应用程序错误的详细信息(出于安全原因)。但是,本地服务器上运行的浏览器可以查看它。 详细信息:要在远程计算机上查看此特定错误消息的详细信息,请在位于当前web应用程序根目录中的“web.config”配置文件中创建一个标记。然后,该标记的“mode”属性应设置为“Off”。 注意:通过修改应用程序配置标记的“defaultRedirect”属性以指向自定义错误页URL,可以将当前看到的错误页替换为自定义错误页。 此页面(有时调用)由ASP.NET工作进程生成。它告诉您的应用程序有错误,但由于web.config文件中的设置,错误已被隐藏。它被隐藏的原因是一般的互联网用户看不到你的代码。他们可能会利用这些信息来利用应用程序中的漏洞


要查看真正的错误,请按照您发布的说明进行操作,或者从承载站点的计算机上查看页面。当您在本地查看错误时,该错误不会被掩盖

我想知道genericerropage.htm的内容是什么,这和我在上面发布的内容一样吗?或者不同..如果不同是什么?不,那不是GenericErrorPage.htm