RSS

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


Got the following error some time back when i tried running the project,



since it said that it wasnt configured to be dubugged i ran it with the good old "CTRL + F5" option and got the following error message in IE



my first guess after reading the error (make that reading half the error) was that somehow there was some configuration problem regardign who overrides whom in the web.config and the machine.config.

but after reading the Total error message understood that the error wasnt in the Web.config it was in the IIS virtual Directory settings that I had ,somehow it had changed.

Anyways, here is how to solve the error :-

Just open IIS and goto the properties for the Virtual directory and click on this button

  1. Sanath

    October 24, 2008 at 3:18 PM

    It appears to be if you are using a Hosting company you het less freedom to tweak c#,asp.net applications

  1. syed

    January 20, 2009 at 4:45 AM

    Plaese any one tell me something that Error

    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

  1. syed

    January 20, 2009 at 4:45 AM

    Plaese any one tell me something that Error

    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

  1. Shaunak Pandit

    February 21, 2009 at 1:19 AM

    Syed,

    Not getting you can you ellaborate plz?

  1. Shaunak Pandit

    February 21, 2009 at 1:19 AM

    Syed,

    Not getting you can you ellaborate plz?

Post a Comment

Copyright © Shounak S. Pandit. Powered by Blogger.

Ads