I have downloaded the online project in ASP.Net. While running application I get an error
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.
What changes should i make in web.config or elsewhere to make this work?
In my case there was a "Backup" folder which contained another copy of the whole website in there. This meant another
web.config
and so the build failed with this error. I deleted the "Backup" folder, did a Clean solution on the Debug and Release builds, and the error disappeared.Clean your project Remove the /obj folder (probably using publish and deploy? - there is a bug in it)
I've got the same problem in VS 2013 after publishing my project in debug mode. The problem has been solved by removing obj/ files
In Visual Studio 2013 I struggled with this for a while and it is pretty much easy to solve just follow what the exceptions says "virtual directory not being configured as an application in IIS"
In my case I had
WebService
planted insideIIS website
soConvert to Application
Ok
WCF is back and running.
If you have MVC project with enabled views build, one of the solution is to delete obj folder before build. Add to project file:
Here is article: How to remove bin and/or obj folder before the build or deploy
I had this error when building the solution with Web Deployment Project created into my solution. I resolve the error by deleting the folder where Web Deployment Project is built to. This folder is specified in "Project Folder" attribute of WDP properties