+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Conflicts trying to prevent inheritance of handlers in child applications

Conflicts trying to prevent inheritance of handlers in child applications

10 posts, 0 answered
  1. Jules
    Jules avatar
    65 posts
    Registered:
    20 Jul 2005
    08 Mar 2013
    Link to this post
    I have a Sitefinity 5.4 site that sits as the parent for a number of child .Net apps.

    As most of you know, child .Net apps nested under a parent .Net app inherit settings, like handlers, etc., from their parents. As a workaround to this, I have always just wrapped the Sitefinity system.web and other sections in a location tag, added inheritInChildApplications=false, and been done with it.

    This works very well for the child applications. However, it's not working for Sitefinity anymore. Now I am plagued by errors such as 
    "'~/Telerik.Web.UI.WebResource.axd' is missing in web.config" as Sitefinity's own self is trying to look for its handlers.

    For the moment, my absolutely unacceptable workaround is that I have to open the web.config and comment out my location tag every time someone needs to log on to the Sitefinity backend. Seriously. So clearly, that's not going to work.

    Anyone have any ideas for a better solution? I cannot be the only person out there with this setup.

    In case you need this info, this is a completely clean 5.4 site (not upgraded from anything, because I just rebuilt the thing in the hopes that a clean site would magically be better.) The site has no custom code except for CSS, and the only widgets used are the generic content and image widgets. 

    I know there has to be a way to keep Sitefinity running properly but also keep it from mucking up my sub-apps. Thanks in advance to anyone who helps me out.
  2. Patrick Dunn
    Patrick Dunn avatar
    237 posts
    Registered:
    03 Nov 2014
    13 Mar 2013
    Link to this post
    Hello Julia,

     This would be a tough one to call without seeing the project or at least parts of it which I'm sure you don't want to put here. Could you open a support ticket so we can exchange these? We'll be sure to post a resolution back here for the community when we find one.

    Thanks in advance!

    Greetings,
    Patrick Dunn
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. nwelch
    nwelch avatar
    1 posts
    Registered:
    11 May 2007
    24 Apr 2013 in reply to Patrick Dunn
    Link to this post
    We are running into this same issue with our setup.  Our root site is a Sitefinity 5.4 site, and we have a sub-app in a virtual directory that is a Sitefinity 3.7 site.  We can get the sub-application working fine, but in order to get the root 5.4 site working we have to remove the location tags.  

    What is the solution to this issue?
  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    02 Dec 2016
    29 Apr 2013
    Link to this post
    Hi Julia,

    Thnak you for getting back to us.

    If you want to set a child application under a Sitefinity one ( or the other way around ) , there are number of changes that need to be made to the web.config files. In some cases inheritInChildApplications is OK but when using Sitefinity setting only the inheritInChildApplications to false is not enough. Please find attached the sample web.config files - you can compare the changes that need to be made to the one you have set. Please note, that the attached files are for Sitefinity 5.2.

    You can configure both Sitefinity apps as in our documentation, however please take into consideration the above configuration files.

    Let me know if the above suggestion does not help you.

    Greetings,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Josette Riep
    Josette Riep avatar
    2 posts
    Registered:
    06 Mar 2010
    04 Oct 2013 in reply to Boyan Barnev
    Link to this post
    Hi... Can you repost the example web.config we have a similar issue working Sitefinity 6.1

    Thanks...
  6. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    08 Oct 2013
    Link to this post
    Hi,


    Please find the configuration files attached.

    Regards,
    Stefani Tacheva
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Scott
    Scott avatar
    2 posts
    Registered:
    23 Apr 2012
    12 Dec 2013 in reply to Josette Riep
    Link to this post
    Josette - were you able to get your child site working?  We are running Sitefinity 6.2.4900 and have the same problem.

    I've used the "location" tag in the parent site along with "remove" directives in the child site and our child site is still trying to access the "Telerik.Sitefinity" assembly.  I can't figure out what else I can change in our web.config files to make this work.

    -BEP
  8. Jeffrey
    Jeffrey avatar
    4 posts
    Registered:
    07 Feb 2012
    13 Dec 2013
    Link to this post
    Scott,

    We had tried everything and even got Telerik (Stefani Tacheva) involved.  They replied:

    *********************
    Basically we have not tested this scenario and I could not provide you with a sample. Between version 2.0 and 4.0 .NET there are a lot of differences. Could you please inform us what is the idea of the whole configuration? Why do you want this application configuration? It would be hard for you to have such configuration on your end. I have found some useful articles that might help you configuring your applications:

    http://msdn.microsoft.com/en-us/library/dd329554%28v=vs.100%29.aspx
    http://stackoverflow.com/questions/6380983/how-do-i-configure-this-iis-7-5-child-application-properly

    The main thing you need to do is to change the following line:

    <location path="." inheritInChildApplications="false">

    You might need to remove a lot of handlers and httpmodules using <Remove>.

    Furthermore, please note that the two applications should use different application pools. There are other methods you could use instead of parent-child application like file system binding and ets.
    *********************

    We gave up and moved the child site.  Hope something here helps.

    - JG
  9. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    17 Dec 2013
    Link to this post
    Hello,

    Thank  you Jeffrey for sharing our reply to the community.

    Regards,
    Stefani Tacheva
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Chance
    Chance avatar
    3 posts
    Registered:
    24 Apr 2015
    06 Apr
    Link to this post

    http://www.sitefinity.com/developer-network/knowledge-base/details/how-to-create-sub-applications-inside-a-sitefinity-website

     

     

10 posts, 0 answered