Advertisement:

Skystone Software

http://www.SkystoneSoftware.com

Scott Waletzko's Blog
ASPX / IIS / Page Cannot be Found
Published: 12/5/2007
XMl / RSS

I've been working struggling with IIS 6.0 the past day or so trying to deploy our new Web software. Visual Studio has made it real easy (Right-click the project and choose "Build -> Publish"), but IIS is a real pain in the ass to work with. This is one of those times where I wish I had a Web Admin to pawn this sort of thing off on, but instead it's just me and my Systems Admin trying to figure out what's going wrong. One thing that we came across is a horrible default setting choice by Microsoft coupled with a ridiculous error message. After deploying my ASP.NET 2.0 project to the server, I kept getting "Page Not Found" errors when navigating to my ASPX pages (HTM pages worked fine). Long story short, despite .NET 2.0 being installed and being selected as the framework of choice for the particular Web site, it somehow wasn't registered properly with IIS, and therefore was a prohibited Web Service Extension. They couldn't have made it harder to track this one down with that misleading error message, and I have no idea why parts of IIS recognized .NET and others didn't.

Solving this problem was a two step process. First, in order to get IIS to properly recognize .NET 2.0 (it recognized the 1.1 framework), I had to find the 2.xxx folder in the .Net Framework folder (in the Windows folder) and run "aspnet_regiis.exe -i". Then, I had to go into the IIS MMC snapin and enable the associated Web Service Extension under the Web Service Extensions folder under the main IIS server node. Actually, it might have already been enabled as part of the registration process, I can't remember - I was so releived that it was working at that point.

Now if I could just figure out why IIS is prompting me for a username and password all of a sudden...



Questions or Comments? .

VB to C# and C# to VB translation provided by Instant C# and Instant VB.