我抄一个网站到另一个文件夹,并试图利用IIS在Visual Studio中运行它,但由于某种原因,它给我在web.config文件中如下的编译错误:虚拟路径XX映射到另一个不被允许的应用程序。
<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。请帮助这让我疯狂!