Bookmark and Share Subscribe Bookmark and Share

Categories

Advertisement



Server Error in Ôò¼├┤Ôö£├ºÔö£ÔöÉ/’ Application on IIS 7 (allowDefinition=’MachineToApplication’)

Mar
21


 « »    

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\dynoreg.com\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.