我正在尝试在Visual Studio 2008中调试旧项目。当我转到asp页面时,我得到以下内容。
Server Error in '/website' Application.
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly.
我已检查过IIS(版本6),并且允许使用Active Server Pages。我可以让页面出现在浏览器中吗?
答案 0 :(得分:1)
我假设您实际上是在使用IIS6来提供页面,而不是vs2008附带的开发Web服务器,它只提供静态和.NET内容。
在IIS管理器中,打开包含ASP文件的文件夹上的属性对话框,启用脚本。还要检查网站或服务器级别是否有.asp扩展名到ASP.dll的映射。