Error: allowDefinition='MachineToApplication' beyond application level
Solution 1:
I've just encountered this "delight". It seems to present itself just after I've published a web application in release mode.
The only way to consistently get round the issue that I've found is to follow this checklist:
- Clean solution whilst your solution is configured in Release mode.
- Clean solution whilst your solution is configured in Debug mode.
- Build whilst your solution is configured in Debug mode.
Solution 2:
Just come across this post and that was happening to me.
Just Clean
the project and the error goes away. (must be a VS2010 bug)