Thanks Tom, the child site right now has no web.config, just a placeholder index.html file is all that is there.
They are both using the same ASP.NET v4.0 application pool, which I use for a bunch of local dev sites, using .NET Framework v4.0.30319, Managed pipeline mode: Integrated.
The child site was added with "Add application" via IIS Manager (Windows 7, IIS 7.5) as a child of the umbraco site.
The physical path is to a directory outside of the whole umbraco site, with the alias "myapp".
Anyway, I tried deleting the child app completely, and I still have this problem. If the location tag is in the web config surrounding the system.web & system.webServer tags, it breaks "umbraco". If I take it out, umbraco runs fine. So basically, that single change breaks the admin section.
Yes, I installed 7.2.6 from a zip downloaded from our.umbraco. Created a Site for it in IIS Manager, Created a DB for it in SSMS. Umbraco installed itself fine, I created an admin account, made some document types, templates, add content, upload media, etc. I can browse the pages I made.
So all content under umbraco.local and any pages I made like umbraco.local/mypage all work.
It only breaks umbraco.local/umbraco when I try adding the location tag to the top level web.config in order to create a child site. Weird.
Instead of removing the whole section, I think it happens when wrapping the whole system.webserver section, so umbraco doesn't know to not validate the integrated config. Adding it back in tells Umbraco to behave ;)
(You may also need to add it to the app_plugins location and any others)
Problem running separate app in umbraco site
I've set up Umbraco to run on a local server:
umbraco.local
I've also set up a separate .NET application to run at:
umbraco.local/myapp
Reading the forums, it seems you have to wrap the system.web and system.webServer sections of Umbraco's web.config with:
When I do that, it almost works, except it breaks:
umbraco.local/umbraco
So I can't use the admin dashboard.
The error I get is:
So maybe the posts I read about this are out of date? Is there still a way to do this?
Hi Mike,
This setup should definitely work, I use it on quite a few sites.
It almost sounds like the child web.config might have a bad config setting or app pool configuration. Could that be the case?
-Tom
Thanks Tom, the child site right now has no web.config, just a placeholder index.html file is all that is there.
They are both using the same ASP.NET v4.0 application pool, which I use for a bunch of local dev sites, using .NET Framework v4.0.30319, Managed pipeline mode: Integrated.
The child site was added with "Add application" via IIS Manager (Windows 7, IIS 7.5) as a child of the umbraco site.
The physical path is to a directory outside of the whole umbraco site, with the alias "myapp".
Anyway, I tried deleting the child app completely, and I still have this problem. If the location tag is in the web config surrounding the system.web & system.webServer tags, it breaks "umbraco". If I take it out, umbraco runs fine. So basically, that single change breaks the admin section.
Hmm, sounds really weird. Umbraco is set to the home directory of your root IIS site, yes?
I'm perplex at why removing the
Yes, I installed 7.2.6 from a zip downloaded from our.umbraco. Created a Site for it in IIS Manager, Created a DB for it in SSMS. Umbraco installed itself fine, I created an admin account, made some document types, templates, add content, upload media, etc. I can browse the pages I made.
So all content under umbraco.local and any pages I made like umbraco.local/mypage all work.
It only breaks umbraco.local/umbraco when I try adding the location tag to the top level web.config in order to create a child site. Weird.
I'm using port 8080 but that shouldn't matter.
Here's my web.config if it helps...
After some more testing, it seems that this broke in 7.2.6.
I tried a clean install, using a new DB and site. All I did was add the location tag to Web.config, and that breaks the /umbraco dashboard.
I tried another clean install using version 7.1.4, doing the exact same thing and it works.
I don't know if there's some other way to run another app in a subdirectory. Unfortunately this is a showstopper for us to use Umbraco.
Hi Mike,
Thanks for the additional info. Good news, I was able to reproduce on 7.2.6 and there's an easy fix!
In your web.config, just remove the following lines at the end:
That should fix it up. I'm not exactly sure what's happening, but appears to be some sort of conflict with the
-Tom
Ahh! That works, fantastic. Thanks very much!
We also ran into this today, it turns out you can just add
So the Umbraco location becomes
Instead of removing the whole section, I think it happens when wrapping the whole system.webserver section, so umbraco doesn't know to not validate the integrated config. Adding it back in tells Umbraco to behave ;)
(You may also need to add it to the app_plugins location and any others)
is working on a reply...