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 HTTP://localhost (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:
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config (has nothing for *.asp nor HttpForbiddenHandler so nothing to comment out).
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config (has nothing for *.asp)
- 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).
- 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.
- 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.