Last post Feb 05, 2013 02:13 AM by oned_gk
Feb 04, 2013 10:23 PM|erikn68|LINK
Here is the error. What should I do
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.
Line 2: <configuration>
Line 3: <system.web>
Line 4: <profile> Line 5: <properties>
Line 6: <add name="UserTheme"/>
Source File: C:\Sites\content\e\r\i\erikn68\web.config Line: 4
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
Feb 04, 2013 10:46 PM|priyankmtr|LINK
Did you check to make sure the folder was configured as an application? Most likely you have nested web.config files. Remove or rename the one in a folder below or above your app.
Feb 04, 2013 11:01 PM|oned_gk|LINK
Add application instead add virtual directory, or configure virtual directory as an application
Feb 04, 2013 11:11 PM|markfitzme|LINK
I explained this in your previous post. This happens when your web.config is in a directory that isn't your application root. Example: Your root directory is c::\myroot which maps to your site like
http://www.mysite.com. If you put the web.config in c:\myroot\dir (which maps to
http://www.mysite.com/dir) then this error would occur since. Certain things such as authentication, profile, sessionstate can only be set in the web.config that is at the very root of the application. Once you figure
out which is the root directory for the application, place this in the web.config in the root and make sure it isn't in a subdirectory.
Feb 04, 2013 11:24 PM|erikn68|LINK
It is still not working with the config file in root and the aspx in the sub directory
Feb 05, 2013 02:13 AM|oned_gk|LINK