Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pratik Kothari 10 posts 30 karma points
    Jan 30, 2010 @ 00:55
    Pratik Kothari
    0

    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

  • Daniel Lindstrom 454 posts 271 karma points
    Jan 30, 2010 @ 02:20
  • jaygreasley 416 posts 403 karma points
    Jan 30, 2010 @ 07:45
    jaygreasley
    0

    or you can add the folder(s) to the "umbracoReservedPaths" key in the web.config.

  • Daniel Lindstrom 454 posts 271 karma points
    Jan 30, 2010 @ 08:51
    Daniel Lindstrom
    0

    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?

  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Jan 30, 2010 @ 10:29
    Scott Hugh Alexandar Petersen
    1

    No it doesn't, but you can do it otherwise, you can put the system.web into a location block.

    <location path="." inheritInChildApplications="false">
        <system.web><!-- all your stuff for umbraco --></system.web>  
    </location>  

    However, this might not be the way to do it. So if you would opt in for another solutoin like using

    <httpModules>
    <clear/>
    <add key="" />

    </httpModules> 

    or

    <httpModules>
    <remove name="module you want to remove" />
    </httpModules>

    Both of the above examples would have to be done for each section of course...

  • Stephan Lonntorp 195 posts 212 karma points
    Jan 30, 2010 @ 10:32
    Stephan Lonntorp
    0

    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.

  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Jan 30, 2010 @ 11:54
    Scott Hugh Alexandar Petersen
    0

    Good point, the application should be set up directly from iis or via frontpage extensions.

  • Pratik Kothari 10 posts 30 karma points
    Jan 31, 2010 @ 21:01
    Pratik Kothari
    0

    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

  • antao 81 posts 371 karma points
    Apr 08, 2013 @ 11:17
    antao
    0

    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.

  • jaygreasley 416 posts 403 karma points
    Apr 08, 2013 @ 21:42
    jaygreasley
    0

    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

  • Sébastien Richer 194 posts 430 karma points
    May 08, 2013 @ 21:19
    Sébastien Richer
    0

    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!

  • Sébastien Richer 194 posts 430 karma points
    May 15, 2013 @ 19:24
    Sébastien Richer
    0

    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!

     

     

     

     

     

     

     

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft