Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

section registered as allowDefinition='MachineToApplication' beyond application level

I am getting this error when I create a new folder, and upload files to it. I have an existing site that's built, but I don't want to add this to the site, but rather have it be an application all by itself. Any ideas?

like image 425
Christof Avatar asked Nov 11 '09 02:11

Christof


2 Answers

This is indeed the first scenario to check. However, the most frustrating scenario in which this error occurs is after a build/publish under a different build configuration (i.e. build under Release, and then trying to build under Debug and getting this error). You should perform Clean operation on the Release mode.

See this answer which points to further details: Error: allowDefinition='MachineToApplication' beyond application level

like image 115
Ofer Zelig Avatar answered Oct 13 '22 19:10

Ofer Zelig


I just had this problem not too long ago. Go into IIS, select the folder you created and go to properties. You will see "application name" greyed out, click the "create" button and save it. You will be able to run your separate application in it.

like image 43
Jeremy Morgan Avatar answered Oct 13 '22 17:10

Jeremy Morgan