Error While running site from IIS
Server Error in '/' Application.
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: It
is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error can
be caused by a virtual directory not being configured as an application in
IIS.
Source Error:
Line 85: <customErrors mode="Off" defaultRedirect="~/error.aspx" redirectMode="ResponseRewrite"/>
Line 86: <compilation debug="true" targetFramework="4.0"/>
Line 87: <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="Sitefinity">
Line 88: <providers>
Line 89: <clear/>
Source
File: c:\inetpub\wwwroot\salix update\salix\web.config Line: 87
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.237
Hi, Dhaval.
Thank you for contacting us.
There are several possible causes for this error.
1. As the error itself suggests, maybe the the project's virtual directory is not configured as an application in IIS.
2. web.config files in sub-directories with illegal tags.
3. Duplicate web.config files at the root or in a backup directory.
Below are some links that describe these scenarios and may provide you with the solution to your problem:
http://web-geeks.blogspot.com/2008/04/it-is-error-to-use-section-registered.html
http://dotnet-magic.blogspot.com/2008/11/it-is-error-to-use-section-registered.html
http://forums.asp.net/t/769696.aspx
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b5488995-fa99-460f-96d7-29d1ddcf3fac.mspx?mfr=true
http://forums.iis.net/p/1150386/1873823.aspx
Please contact us again if you have any more questions.
All the best,
Randy Hodge
the Telerik team
Hi,
I got a similar error message and want to share what worked for me.
CONDITIONS:
I had the project in VS2010 and then tried to open it in VS2012 , for some reason I didn't have the .sln file and I was trying to compile when using "open website". In my opinion the issue could be related to a framework version conflict.
MY SOLUTION:
1- Install all the updates for Visual Studio 2012 and Sitefinity Thunder
2-Open (doubleclick) the "SitefinityWebApp.csproj" and let the VS do the some migration work, try to close (you will be asked to save the new .sln)
2- Open Visual Studio "as administrator" (run as administrator) in the development server, open the new .sln file, rebuild and the error message goes away.
I hope this help somebody.