Bookmark and Share Subscribe Bookmark and Share



Server Error in ‘/’ Application on IIS 7 (allowDefinition=’MachineToApplication’)


 « »    

I received this error in IIS 7 when I went to the default application of an ASP billing application that I installed on my web server.

In this case the error is pretty self explanatory, in the error it says "This error can be caused by a virtual directory not being configured as an application in IIS." With that known this article will describe how to set a web directory as an application in IIS 7.

Error Message:

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 14:     </configSections>

Line 15:     <system.web>

Line 16:         <machineKey validationKey="4CF1DB62263A5748D6F6C03409E401068F3DE114B826D371D72B77D7CCC7A0CB20D7A3DE8F08F8A0FD67F27289127FF62F538EE82B900C1DCE7A44052BD92D4E" decryptionKey="8CD524CA8D6B430C259590D94A95A4CF6D1B1D10F75BFA256A4F43231FEC523C" validation="SHA1" decryption="AES" />

Line 17:         <customErrors mode="Off" />

Line 18:         <pages>

Source File: C:\inetpub\plan.0\\billing\web.config    Line: 16

Open "IIS Manager", right click the directory and select "Convert to Application"

You can keep the default settings or adjust the settings of the web application here. Press "OK"

You will now see the web application with a small globe next the directory name instead of a folder this indicates it’s a web application

Now when we browse to the /billing directory we no longer get the error.

    Did I save you time and headaches? Buy me a cup of coffee.
    The more coffee I drink the more articles I can write.

3 Comments so far

    • Frank Zyxy said:
    • Posted on March 26th, 2012 at 11:04 am
    • Reply
    • Permalink

    I also done as described above but this rather simple solution did not solve it. Actually it's been more than one day of work I am banging my head against my keyboard desperately looking for an answer on the Internet, in vain.

    Graham Plowman, did you solve it yet? (after 63 weeks of posting here I sincerely hope so ;-)

    Thanks for your help!

    • If your Application is 32bit :
      Right Mouse Button on ApplicationPool related with your website or application > Advanced Settings > Enable 32-Bit Applications > True

      I hope this help!

  1. I have converted a virtual directory to an application and I am still getting this error in Windows 7 / 64 bit.

    What do I do now ?

Leave a comment

Trackbacks on this post