So, I have a web application that has been created using ASP.NET and has been running under the default website in IIS.
Our default website also has the front end pages of the website currently built using HTML.
We have re-created the entire front-end using umbraco and are ready to deploy to production but when I do this, the web application starts failing because Umbraco's web.config is interfering with the web application's web.config.
Can someone please point me in the right direction here so that I can deploy my website built using Umbraco and the ASP.NET Web Application inside it can function normally as well?
Depending on what the other asp.net app is and does, you could put its settings in Umbraco's web.config, and simply make sure that Umbraco doesn't handle calls to your application's files (in the way Jay explained above).
If you are running your app in a virtual directory, all you need to do is follow Jay's example.
The way IIS works, you can't just create a sub-dir, and put all your files in it, and pretend it's an application.
I'm doing this also, I have my MVC4 web application that runs correctly. Now I created an applucation in there /about/ and that points to my Umbraco website. Got the inherited web.config things sorted out (I think). The problem I'm having now is that I see my root node, no matter what url I type. Examples:
/about/blog/ --> root node
/about/someOtherPage/ --> root node
It's like the routing is bypassed?
Edit: I'm pretty sure it has to do with manage hostnames, how should they be setup?
Had to set this ResolveUrlsFromTextString to true!
---------------------
EDIT: Actually this doesn't solve my issue, spoke too fast! I'm pretty certain it has to do with manage hostnames because they seam to be completely bypassed. Here's the structure I'm trying to do:
/about/ --> Virtual application to Umbraco
In my content tree I have this structure (including hostnames mentions):
- mySite - EN --> Maps to /about/ in manage hostnames - A page
Now when I type /about/ I should get my "EN" content node, but I actually get my "mySite" content node. What am I missing here?
web application inside umbraco site in IIS
So, I have a web application that has been created using ASP.NET and has been running under the default website in IIS.
Our default website also has the front end pages of the website currently built using HTML.
We have re-created the entire front-end using umbraco and are ready to deploy to production but when I do this, the web application starts failing because Umbraco's web.config is interfering with the web application's web.config.
Can someone please point me in the right direction here so that I can deploy my website built using Umbraco and the ASP.NET Web Application inside it can function normally as well?
Pratik
The remove, clear and location commands might help. See here:
http://www.aspdotnetfaq.com/Faq/how-to-disable-web-config-inheritance-for-child-applications-in-subfolders-in-asp-net.aspx
or you can add the folder(s) to the "umbracoReservedPaths" key in the web.config.
Of course you are right jay, that should be the first thing to do!
But does umbracoReservedPaths stop web.config inheritance other than it tells umbraco not to handle those URLs as CMS content?
No it doesn't, but you can do it otherwise, you can put the system.web into a location block.
However, this might not be the way to do it. So if you would opt in for another solutoin like using
or
Both of the above examples would have to be done for each section of course...
Depending on what the other asp.net app is and does, you could put its settings in Umbraco's web.config, and simply make sure that Umbraco doesn't handle calls to your application's files (in the way Jay explained above).
If you are running your app in a virtual directory, all you need to do is follow Jay's example.
The way IIS works, you can't just create a sub-dir, and put all your files in it, and pretend it's an application.
Good point, the application should be set up directly from iis or via frontpage extensions.
Thank you very much for the prompt and informative replies.
I added the application folder to the reserved paths and added the <location> tag in web.config.
Everything seems to be working. Thanks once again.
Pratik
Hey everyone,
I'm running with the same issues, but none of the solutions that worked for you guys, worked for me...
I'm running U4.11.4 and an MVC 4 website as a web application. Any help or advice would be really appreciated! Thanks,
Joao.
ahh, with 4.11.x I believe you have much better, but different, ways of doing this.
I've not done it yet but you may find some advice either on this forum or in the docs on github.
https://github.com/umbraco/Umbraco4Docs/tree/master/Documentation/Reference/Mvc
Hello!
I'm doing this also, I have my MVC4 web application that runs correctly. Now I created an applucation in there /about/ and that points to my Umbraco website. Got the inherited web.config things sorted out (I think). The problem I'm having now is that I see my root node, no matter what url I type. Examples:
/about/blog/ --> root node
/about/someOtherPage/ --> root node
It's like the routing is bypassed?
Edit: I'm pretty sure it has to do with manage hostnames, how should they be setup?
Any help will be muchly appreciated!
Thanks!
Got my site workign liek I want, http://stackoverflow.com/questions/16449778/path-problems-with-running-a-sub-application-umbraco-inside-my-mvc4-web-applic/
Had to set this ResolveUrlsFromTextString to true!
---------------------
EDIT: Actually this doesn't solve my issue, spoke too fast! I'm pretty certain it has to do with manage hostnames because they seam to be completely bypassed. Here's the structure I'm trying to do:
/about/ --> Virtual application to Umbraco
In my content tree I have this structure (including hostnames mentions):
- mySite
- EN --> Maps to /about/ in manage hostnames
- A page
Now when I type /about/ I should get my "EN" content node, but I actually get my "mySite" content node. What am I missing here?
Many thanks!
is working on a reply...