路径“/App_GlobalResources/”映射到该应用程序之外的目录,该目录不受支持
生成此错误的文件如下所示
<%@ Page Language="C#" %>
<script runat="server">
void Page_Load()
{
Response.Write("Hello World!");
}
</script>
Web 应用程序不使用资源文件,也不包含名为“App_GlobalResources”的文件夹。
系统:
- Windows Server 2003 R2
- IIS 6.0
- ASP.NET 2.0
The file that generates this error looks like this
<%@ Page Language="C#" %>
<script runat="server">
void Page_Load()
{
Response.Write("Hello World!");
}
</script>
The web application doesn't use resource files and does not contain a folder called 'App_GlobalResources'.
The system:
- Windows Server 2003 R2
- IIS 6.0
- ASP.NET 2.0
I found a solution that apparently works for many users as you can see in the forum topic and also in some blogs. But it does not work for me for me. Any ideas what the problem is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对我来说,我怀疑这是因为我有同一个项目,来自同时在 Visual Studio 中打开的 2 个不同分支。其中一个的构建导致了另一个的错误。它必须与如何使用 IIS(Express) 自动注册站点有关。
关闭 Visual Studio &重新打开就可以了。
For me, I suspect this was caused because I had the same project, from 2 different branches open in Visual Studio at the same time. Building in one of them caused the error in the other. It has to do w/ how it automatically registers sites w/ IIS(Express).
Closes Visual Studio & reopening does the trick.
我最终在 IIS 中重新创建了该网站。现在一切都按预期进行了!我完全不知道,问题出在哪里!
I ended up re-creating the website in the IIS. Now everything works as expected! I have absolutely no clue, what the problem was!