Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.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
Asp.net 如何为Web和移动站点配置不同的自定义错误页?_Asp.net_Configuration_Web Config - Fatal编程技术网

Asp.net 如何为Web和移动站点配置不同的自定义错误页?

Asp.net 如何为Web和移动站点配置不同的自定义错误页?,asp.net,configuration,web-config,Asp.net,Configuration,Web Config,有没有办法为web应用的不同部分配置不同的错误页面 通常,对于web应用程序,我可以在web.config中配置自定义错误页面。e、 g <customErrors defaultRedirect="standarderror.aspx" mode="RemoteOnly"> <error statusCode="404" redirect="filenotfound.htm"/> </customErrors> 有没有一种方法可以为web和移动站点

有没有办法为web应用的不同部分配置不同的错误页面

通常,对于web应用程序,我可以在web.config中配置自定义错误页面。e、 g

<customErrors defaultRedirect="standarderror.aspx" mode="RemoteOnly">
  <error statusCode="404" redirect="filenotfound.htm"/>
</customErrors>


有没有一种方法可以为web和移动站点指定不同的页面?

您可以在移动版本子目录中仅使用customerrors选项创建其他web.config文件。

您可以在移动版本子目录中仅使用customerrors选项创建其他web.config文件。

如何在一个目录中分隔不同的站点应用程序?移动站点位于名为mo的子目录中。So xyz.com/mo/home.aspx将是移动页面。如何在一个应用程序中分隔不同的站点?移动站点位于名为mo的子目录中。So xyz.com/mo/home.aspx将是移动页面。