Help with Error Message

Topics: Developer Forum, Localization Forum, Project Management Forum, User Forum
Aug 6, 2008 at 5:21 PM
Does anyone know what I need to do to fix this error.  When I run the site locally it works fine, when I uploaded it to my web server, I get this, thanks.

 

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 27: 				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
Line 28: 		</compilation>
Line 29: <authentication mode="Forms">Line 30: 			<forms loginUrl="Login.aspx" timeout="500000" protection="All" name=".ASPXFORMSAUTH"/>
Line 31: 		</authentication>

Source File: d:\hosting\mrmeyer4cac\plc4u\web.config    Line: 29



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. (d:\hosting\mrmeyer4cac\plc4u\web.config line 42)
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. (d:\hosting\mrmeyer4cac\plc4u\web.config line 48)
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. (d:\hosting\mrmeyer4cac\plc4u\web.config line 55)

Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
<!-- [ConfigurationErrorsException]: 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. (d:\hosting\mrmeyer4cac\plc4u\web.config line 29) at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName) at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index) at System.Web.Configuration.RuntimeConfig.get_CustomErrors() at System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context, Boolean canThrow) at System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow, Boolean localExecute) at System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) --- [ConfigurationErrorsException]: 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. (d:\hosting\mrmeyer4cac\plc4u\web.config line 42) at System.Web.Configuration.WebConfigurationHost.VerifyDefinitionAllowed(String configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition, IConfigErrorInfo errorInfo) at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps) --- [ConfigurationErrorsException]: 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. (d:\hosting\mrmeyer4cac\plc4u\web.config line 48) at System.Web.Configuration.WebConfigurationHost.VerifyDefinitionAllowed(String configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition, IConfigErrorInfo errorInfo) at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps) --- [ConfigurationErrorsException]: 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. (d:\hosting\mrmeyer4cac\plc4u\web.config line 55) at System.Web.Configuration.WebConfigurationHost.VerifyDefinitionAllowed(String configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition, IConfigErrorInfo errorInfo) at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
Aug 6, 2008 at 5:47 PM
I finally found what I was looking for when I searched the correct way, I think I have the solution.
Aug 6, 2008 at 7:40 PM
Hi
If you read out the message, it's a iis(application) error. Configure the folder as it's own application folder, then I think it's going to work. 
Eg.
wwwroot/mysite1
wwwroot is configured as an application folder, but not mysite1. If you set mysite1 as it's own application it will work.
Aug 6, 2008 at 10:53 PM
Again being a total newbie to all of this I didnt know what that even meant, but I figured it out and that I had to log onto my hosting server and set the subdirectory there as it's own root folder.  That makes sense to me.