IIS7, ASP.NET, VS2008

I built an ASP.NET app in VS2008, then tried to run it under IIS 7 and Vista Ultimate on a different machine.

Initially I had errors like:

HTTP Error 500.19 – Internal Server Error

Description: The requested page cannot be accessed because the related configuration data for the page is invalid.

Error Code: 0×80070021

Notification: BeginRequest

Module: IIS Web Core

Requested URL: http://localhost:80/Search.aspx

Physical Path: C:\inetpub\wwwroot\WebSite\Search.aspx

Logon User: Not yet determined

Logon Method: Not yet determined

Handler: Not yet determined

Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault=”Deny”), or set explicitly by a location tag with overrideMode=”Deny” or the legacy allowOverride=”false”.

Config File: \\?\C:\inetpub\wwwroot\WebSite\web.config

Config Source:

   93: 		<validation validateIntegratedModeConfiguration="false" />
   94: 		<modules>
   95: 			<remove name="ScriptModule" />

This page fixed it for me http://blog.donnfelker.com/2007/03/26/IIS7ThisConfigurationSectionCannotBeUsedAtThisPath.aspx. That then brought up a new error

Cannot find the error atm.

and d’oh I hadn’t installed ASP.NET with IIS, how to do that here http://www.netomatix.com/Development/IIS7_404Error.aspx. Then I realised I didn’t have the .NET 3.5 framework installed:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Child nodes not allowed.

Source Error:

Line 76: 		<compilers>
Line 77: 			<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
                                type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0,
                                Culture=neutral, PublicKeyToken=b77a5c561934e089">
Line 78: 				<providerOption name="CompilerVersion" value="v3.5" />
Line 79: 				<providerOption name="WarnAsError" value="false" />
Line 80: 			</compiler>

so I had to get that

http://www.microsoft.com/downloads/details.aspx?familyid=333325fd-ae52-4e35-b531-508d977d32a6&displaylang=en

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter
Posted Monday, July 14th, 2008 under Development.

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes