English 中文(简体)
在Visual Studio 2008中以调试模式访问asp页时,不提供此类型的页
原标题:This type of page is not served when accessing an asp page in debug mode in Visual Studio 2008

我正在尝试在VisualStudio2008中调试一个旧项目。当我转到一个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页面。我可以让页面显示在浏览器中吗?

问题回答

我假设您实际上使用的是IIS6来为页面提供服务,而不是vs2008附带的开发web服务器,它只提供静态和.NET内容。

在IIS管理器中,打开包含ASP文件的文件夹上的属性对话框,启用脚本。还要在网站或服务器级别检查是否有.asp扩展名到asp.dll的映射。





相关问题
How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Trouble with VS.PHP installing it s own Apache server

I tried installing VS.PHP some time ago. I was intent on seeing how it works with my current setup. I immediately encountered trouble: none of my sites wanted to render. On windows, I m using WAMP ...

Jquery and Intellisense in VS 2008 with hotfix and SP1

I followed Scott Guthrie s instructions as outlined at http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx but no avail: intellisense still doesn t work. Any tips?

Fixing "error C2065: undeclared identifier"

First off, I m completely out of my depth here. So the question might be the wrong one to ask, but here goes... As per the accepted answer to this question, I m trying to compile the bindings for the ...

View whitespace in VS2008

After Jeph most recent post: http://www.codinghorror.com/blog/archives/001310.html, I thought to myself it would be fun to see if any of my code has those trailing whitespaces. So I open Visual ...

热门标签