我已经将一个网站复制到另一个文件夹并尝试使用IIS在Visual Studio中运行它,但由于某种原因,它在web.config文件中的以下行中给出了编译错误:
<add tagPrefix="QuickBuck" tagName="RecentlyModified" src="/Controls/RecentlyModified.ascx" />
<add tagPrefix="QuickBuck" tagName="Sitemap" src="/Controls/Sitemap.ascx" />
Run Code Online (Sandbox Code Playgroud)
在它们下面还有另一条线没有错误,这使得它更奇怪:
<add tagPrefix="QuickBuck" tagName="Menu" src="/Controls/Menu.ascx" />
Run Code Online (Sandbox Code Playgroud)
控件在那里,为什么会发生这种情况?确切的错误是这样的:
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.
Run Code Online (Sandbox Code Playgroud)
错误旁边实际上没有行号,因此我假设它来自web.config.请帮助这让我发疯!
归档时间: |
|
查看次数: |
9493 次 |
最近记录: |