404 Errors When Upgrading ASP.NET 3.5 Web Sites to ASP.NET 4.0

by jmorris 20. October 2010 16:19

After upgrading our projects from Visual Studio 2008 to Visual Studio 2010 and modifying our deployment scripts to to use the 4.0 compiler, we ran into another issue with HTTP 404 errors after deploying to our development environment:

image

Running through the checklist:

  • Is ASP.NET 4.0 Installed? Check!
  • Is ASP.NET 4.0 running? Check!
  • Is IIS running? Check!
  • Is the source code deployed? Check!
  • Is the Web site configured properly in inetmgr? Check!
  • Any host file entries causing problems? No. Check!

Blah, what could be causing this? A comrade of mine (thanks Scott) figured this one out: you have to enable IIS to run the ASP.NET 4.0 extension:

image

To do enable the ASP.NET 4.0 Extensions, do the following:

  1. Fire up intemgr: Start=>Run=>”Inetmgr”
  2. Select the “Web Services Extension” folder
  3. Locate the ASP.NET v4.0.X entry
  4. Right click on it and select “Allow”

That’s it!

Tags: , , , ,

ASP.NET

Pingbacks and trackbacks (3)+

Jeff Morris

Widget Administration not found.

Unable to cast object of type 'ASP.widgets_administration_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X

Widget Search not found.

Unable to cast object of type 'ASP.widgets_search_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X

Widget Tag cloud not found.

Unable to cast object of type 'ASP.widgets_tag_cloud_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X

Widget Month List not found.

Unable to cast object of type 'ASP.widgets_month_list_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X

Widget Page List not found.

Unable to cast object of type 'ASP.widgets_page_list_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X

Widget Blogroll not found.

Unable to cast object of type 'ASP.widgets_blogroll_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X

Widget Visitor info not found.

Unable to cast object of type 'ASP.widgets_visitor_info_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X

Widget Visitor info not found.

Unable to cast object of type 'ASP.widgets_visitor_info_widget_ascx' to type 'App_Code.Controls.WidgetBase'.X