2/11/2010

SharePoint: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

 

“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.”

 

If you are working on a SharePoint application page project then this error is most likely because you have a web.config file in your project.

So:

  • Don’t deploy the web.config to the LAYOUTS folder
  • Or if you need the web.config for any reason (testing, etc) then delete the authentication section:
        <authentication mode="Windows"/>

 

.

No comments:

Note to spammers!

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.