亲测–“未能映射路径/”应用程序中的服务器错误解决办法

亲测–“未能映射路径/”应用程序中的服务器错误
<h1>“/”应用程序中的服务器错误。</h1>

<hr size=”1″ width=”100%” />

<h2><i>未能映射路径“/”。</i></h2>
<span style=”font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;”><b>说明: </b>执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。</span>

<b>异常详细信息: </b>System.InvalidOperationException: 未能映射路径“/”。

<b>源错误:</b>

&nbsp;
<table width=”100%” bgcolor=”#ffffcc”>
<tbody>
<tr>
<td><code>执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。</code></td>
</tr>
</tbody>
</table>
<span style=”font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;”>
<b>堆栈跟踪:</b></span>

&nbsp;
<table width=”100%” bgcolor=”#ffffcc”>
<tbody>
<tr>
<td><code></code>
<pre>[InvalidOperationException: 未能映射路径“/”。]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +462

[HttpException (0x80004005): 未能映射路径“/”。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12617668
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12457285
</pre>
</td>
</tr>
</tbody>
</table>
<span style=”font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;”> </span>

<hr size=”1″ width=”100%” />

<span style=”font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;”><b>版本信息:</b> Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34209</span>

<img class=”alignnone size-full wp-image-19114″ src=”https://xieyiyahooo.oss-accelerate.aliyuncs.com/wp/uploads/2022/10/1666662481-dd1e02c72d441eb.png” alt=”” width=”942″ height=”573″ />

选择应用池如果是默认的,就指定一下ASP.net v4.0版本即可~!

<img class=”alignnone size-full wp-image-19115″ src=”https://xieyiyahooo.oss-accelerate.aliyuncs.com/wp/uploads/2022/10/1666662537-57ccb19d3d9e3a1.png” alt=”” width=”1023″ height=”720″ />

<img class=”alignnone size-full wp-image-19116″ src=”https://xieyiyahooo.oss-accelerate.aliyuncs.com/wp/uploads/2022/10/1666662856-42939021cfee844.png” alt=”” width=”945″ height=”569″ />

温馨提示: 本文最后更新于2025-05-08 08:26:54,某些文章具有时效性,若有错误或已失效,请在下方 留言或联系 我的网站
© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容