【发布时间】:2013-05-30 13:52:38
【问题描述】:
我已将一个网站复制到另一个文件夹并尝试使用 IIS 在 Visual Studio 中运行它,但由于某种原因,它在 web.config 文件的以下行中给我一个编译错误:
<add tagPrefix="QuickBuck" tagName="RecentlyModified" src="/Controls/RecentlyModified.ascx" />
<add tagPrefix="QuickBuck" tagName="Sitemap" src="/Controls/Sitemap.ascx" />
它们下面还有另一条没有错误的线,这让这更奇怪:
<add tagPrefix="QuickBuck" tagName="Menu" src="/Controls/Menu.ascx" />
控件在那里,为什么会发生这种情况?确切的错误是这样的:
The virtual path '/Controls/RecentlyModified.ascx' maps to another application, which is not allowed.
The virtual path '/Controls/Menu.ascx' maps to another application, which is not allowed.
错误旁边实际上没有行号,所以我假设它来自 web.config。请帮助这让我发疯!
【问题讨论】: