Asp.net MVC web.config Error

0

i want to ask some config error that i face in my project when i host on iis.first,i created sample asp.net mvc application,i didn't change anything of built-in web.config.it's normally work when i run,so,i decided to host on iis7.After that when i run hosted application,it occrus error.i tested on window7 and window2008.both errors are same.

Error Summary
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Detail Error Info
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070021
Config Error Configuration section not allowed to be set below application
Config File \?\C:\inetpub\wwwroot\MvcSampleApp\web.config
Requested URL http://localhost:80/mvcapp/mvcApp
Physical Path C:\inetpub\wwwroot\MvcSampleApp
Logon Method Not yet determined
Logon User Not yet determined

Config Source

122:        <validation validateIntegratedModeConfiguration="false"/>
123:        <modules runAllManagedModulesForAllRequests="false">
124:        <remove name="ScriptModule"/>

how i fixed this error?please guide me right way.

regards
Chong

asp.net-mvc
asked on Stack Overflow Jan 13, 2011 by Chong

1 Answer

0

You have set up your website in a folder rather than as an application - you should be able to change it to an application in IIS manager, or you can move it up a level so that the path is /mvcapp rather than /mvcapp/mvcapp.

answered on Stack Overflow Jan 13, 2011 by Tom Clarkson

User contributions licensed under CC BY-SA 3.0