Last post Oct 19, 2012 09:59 AM by dieseldave
Oct 18, 2012 11:46 PM|dieseldave|LINK
I am getting this error when trying to run without debugging.
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. C:\bduc\WebSite1\Web.config 25
All that line 25 f web.config is ...
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt"/>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>
Actually, I copied a lot of the code for some pages - and parts of the config file from another one of my sites that uses the same database.
Oct 18, 2012 11:51 PM|necro_mancer|LINK
you need to convert the subfolder "WebSite1" to a virtual folder. You can do it via your IIS -> Website -> right click this subfolder and select "Convert to Application"
If you like to host this website, you can consider
Please mark this response as an "answer" if it helps you. Thanks heaps!
Oct 19, 2012 09:59 AM|dieseldave|LINK
Thanks - I didnt realize that that folder was there - once you pointed it out I deleted it and that solved the error. There was a second config in that folder!