页面未被提供,因为它已被明确禁止 - 扩展名 .asp 可能不正确

发布于 2024-08-09 06:31:37 字数 2029 浏览 5 评论 0原文

我正在尝试使用文件系统(即 Visual Studio 2005 内置的“Cassini”Web 服务器)而不是(我的 Win XP 开发 PC 上的 IIS 5.1)运行 Web 的测试版本。该网站是多年前编写的经典 ASP 文件和 ASP.NET (VB.NET) 中的一些新开发的大杂烩。

当它尝试转到 /TestWeb/default.asp 时,如何克服此错误消息? -

Server Error in '/TestWeb' 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.
Requested URL: /TestWeb/default.asp
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 

我已经检查过并且之前遇到过试图让这个混乱工作的事情:

  1. C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \ web.config (没有 *.asp 也没有 HttpForbiddenHandler 所以没什么可做的 注释掉)。
  2. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config (*.asp 没有任何内容)
  3. C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config (有一个 HTTPForbiddenHandler *.asp,但我根据其他帖子建议将其注释掉;似乎 但对我没有影响)。
  4. 克服之前的错误 (“请求类型许可 'System.Web.AspNetHostingPermission' 失败”),我不得不去 “管理工具 > MS .Net 框架2.0配置>我的 电脑>运行时安全策略> 将本地 Intranet 更改为完全信任。
  5. 为了克服之前的错误(“ 网络 BIOS 命令限制已 达到”)我必须“启用热 通过添加以下 DWORD 来修复” 以下注册表项的值: HKLM\软件\微软\ASP.NET\FCNMode 并将值设置为 1(每 MS KB 第 911272 条)。

整个网络已放置在我们 LAN 中的文件服务器上,并且从我的桌面 VStudio2005 通过映射的驱动器号(例如 V:\SVNwork\myFolder\TestWeb)查看它,

Visual Studio 2005 将其建模为“网站”(而不是一个“网络应用程序项目”)。

本文的其余部分描述了一些关于我尝试此操作的背景:

我们倾向于在 Win XP 上运行 IIS 5.1 的开发 PC 上重新创建网站。使用 WinDiff 并根据需要复制文件将新内容转移到生产中可能会很尴尬。

我正在尝试对这项工作实施源代码控制。我花了很长时间尝试配置 Visual SourceSafe 2005 和本地 IIS 以便顺利地协同工作(有趣的是,我很幸运地将“Web 应用程序项目”放在 VSS2005 下,所以我认为这与 ASP 的尴尬有关。 NET 2.0“站点”模型和 VSS)。

不管怎样,我已经将这个经典 ASP 和 ASP.NET 的开发版本移至我们 LAN 中的公共文件服务器上。在将其置于 Subversion 控制下作为其等效项导入存储库的工作副本之前,我只想确保它可以与 Cassini Web 服务器一起使用。这就是我被困住的地方。最终目标是在 SVN 下实现此功能并查看与 TortoiseSVN 的差异。

感谢您阅读本文...希望有人能让我克服这个错误,然后我就可以继续进行 SVN 和 TortoiseSVN 工作。

I'm trying to run a test version of a web using the File System (i.e. the "Cassini" web server built-in to Visual Studio 2005) rather than (IIS 5.1 on my Win XP dev PC). This web is a hodge-podge of classic ASP files written years ago and some new development in ASP.NET (VB.NET).

How can I get past this error message as it tries to go to /TestWeb/default.asp? -

Server Error in '/TestWeb' 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.
Requested URL: /TestWeb/default.asp
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 

Things I have checked and previously encountered trying to get this mess working:

  1. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config
    (has nothing for *.asp nor
    HttpForbiddenHandler so nothing to
    comment out).
  2. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
    (has nothing for *.asp)
  3. C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config
    (had a HTTPForbiddenHandler for
    *.asp but I commented it out as per other postings advice; seemed to
    have no effect for me though).
  4. To get past an earlier error
    ("Request for the permission of type
    'System.Web.AspNetHostingPermission'
    failed"), I had to go to
    "Administrative Tools > MS .Net
    Framework 2.0 Configuration > My
    Computer> Runtime Security Policy >
    change Local Intranet to Full Trust.
  5. To get past an earlier error ("the
    network bios command limit has been
    reached") I had to "enable a hot
    fix" by adding the following DWORD
    value at the following registry key:
    HKLM\Software\Microsoft\ASP.NET\FCNMode
    and set the value to 1 (per MS KB
    Article 911272).

This whole web has been placed on a file server in our LAN and from my desktop VStudio2005 views it via the mapped drive letter (e.g. V:\SVNwork\myFolder\TestWeb)

Visual Studio 2005 models this as a "web site" (not a "web application project").

The remainder of this post describes some background about why I am trying this:

We tend to recreate the web site on our dev PC's which run IIS 5.1 on Win XP. Movement of new stuff into production can be awkward using WinDiff and copying files as needed.

I'm trying to implement source control over this work. I've had a heck of a time trying to configure Visual SourceSafe 2005 and local IIS to work together smoothly (interestingly, I had pretty good luck putting "web application projects" under VSS2005 so I think it's related to the awkwardness of the ASP.NET 2.0 "site" model and VSS).

Anyway, I've moved a development version of this classic ASP and ASP.NET to a common file server in our LAN. Before placing this under Subversion control as a working copy of it's equivalent imported into a repository, I just want to make sure it can work with the Cassini web server. That's where I am stuck. The ultimate goal is have this under SVN and view differences with TortoiseSVN.

Thanks for reading this far...hopefully someone can get me past this error and then I can move forward with the SVN and TortoiseSVN work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七堇年 2024-08-16 06:31:37

据我所知,Cassini 不支持经典 ASP。另一种方法是运行 Apache 的本地安装(因为您不能/不会使用 IIS),它将托管 ASP,但可能会带来麻烦。

另请参阅:http://blogs.msdn.com/mikhailarkhipov /archive/2005/06/24/432308.aspx

您还可以运行本地 IIS,当然,它将同时托管 ASP.NET 和经典 ASP。 Visual Studio 可以轻松配置为通过本地 IIS 安装进行调试。

转向 Subversion 的要点:我们使用带有 Subversion 的 Microsoft 堆栈(Visual Studio、ASP.NET、SQL Server),并且效果非常好。

颠覆评论
GRRR..老板们很有趣。 svn 模型被称为复制/修改/合并。存储库位于一个中心位置 - 可能是您的文件服务器。使用 svn 客户端 - 或像优秀的 AnkhSVN 这样的 Visual Studio 插件 - 每个开发人员都会获得一个本地工作副本,进行更改并在完成文件工作后执行“提交”。

SVN 负责确保开发人员不会覆盖彼此的更改,当有人在您获得最后一个副本和提交更改之间修改文件时,提供了一种合并更改的功能

。副本是它使开发人员彼此隔离。合并/提交步骤负责整合每个人的更改。拥有一个供每个人工作的中央工作副本违背了目的。

这是与 Visual SourceSafe 使用的方法非常不同的方法,Visual SourceSafe 基本上是一种文件锁定机制。事实上,SVN 是一个真正的客户端-服务器应用程序(其中 VSS 只是一个基于磁盘的“数据库”,没有服务器应用程序来管理它)提供了各种功能。我们检查、修改、提交,然后从 svn 发布到开发服务器。

另外,如果我没记错的话,卡西尼不会从映射驱动器提供应用程序服务器。

Cassini doesn't, as far as I can tell, support classic ASP. An alternative would be to run a local install of Apache (since you can't/won't use IIS) which will host ASP, but is probably asking for trouble.

See also: http://blogs.msdn.com/mikhailarkhipov/archive/2005/06/24/432308.aspx

You could also run local IIS, which will, of course, host both ASP.NET and classic ASP. Visual Studio can easily be configured to debug with a local IIS install.

Points for moving to subversion: we use the Microsoft stack (Visual Studio, ASP.NET, SQL Server) with subversion and it works very well.

Subversion comment
GRRR.. bosses are fun. The svn model is known as copy/modify/merge. The repository lives in a central location - probably your file server. Using the svn client - or a Visual Studio plugin like the excellent AnkhSVN - each developer gets a LOCAL working copy,makes their changes and performs a "commit" when they're done working on a file.

SVN takes care of making sure that developers don't overwrite each others changes, provides a facility for merging changes when someone has modified a file between when you got your last copy and when you commit your changes, etc.

The whole point of a working copy is that it isolates developers from each other. The merge/commit step takes care of intergrating everyones changes. Having a central working copy that everyone works from defeats the purpose.

This is a very different approach than that used by Visual SourceSafe, which is basically a file locking mechanism. The fact that SVN is a real client-server application (where VSS is simply a disk-based "database" with no server app to administer it) provides all sorts of capabilities. We check out, modify, commit, then publish from svn to a dev server.

Also, if I remember correctly, Cassini won't server apps from a mapped drive.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文