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

10 Sep

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

Advertisements
 
3 Comments

Posted by on September 10, 2008 in .NET, Problem Solving

 

Tags: , ,

3 responses to “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 9: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

    Like

     
  2. Sanath

    October 24, 2008 at 7:18 PM

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

    Like

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: