Copied to clipboard

Flag this post as spam?

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


  • PolishPaul 11 posts 31 karma points
    Sep 06, 2011 @ 04:25
    PolishPaul
    0

    How can I use sub-folders along Umbraco?

    I want to be able to put up separate pages not related to umbraco from the same site. I have umbraco installed in the website's root folder and i want to create a sub-folder which would contain a separate app/site.

    I created a sub-folder and set it as an application but i get this error:

     

    Could not load file or assembly 
    'UrlRewritingNet.UrlRewriter' or one of its dependencies. The system 
    cannot find the file specified.

    I tried modifying the web.config file umbracoReservedPaths and umbracoReservedUrls but nothing changed.

    How does one host other apps/sites in sub-folders?

  • Rich Green 2246 posts 4008 karma points
    Sep 06, 2011 @ 08:17
    Rich Green
    0

    Hey Paul,

    The umbracoReservedPaths should be all you need, what is it you're trying to run in the sub directory? Can you just run a sample/test .aspx file instead of your exisiting app, this might narrow down your problem.

    Rich

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 06, 2011 @ 09:11
    Dirk De Grave
    0

    Yup, as Rich says, dropping your pages in a separate folder and make umbraco ignore those folders should be fine. Dll' for your pages/application should go into bin folder of your umbraco install. If you want to run it as a separate application, either copy all umbraco dlls's into your own folder's bin directory (may conflict if you're using assemblies also used by umbraco if their version number is different) or change the web.config for your own application to override entries from the root's web.config

     

    Cheers,

    /Dirk

  • jaygreasley 416 posts 403 karma points
    Sep 06, 2011 @ 09:25
    jaygreasley
    0

    Further to how to get the separate app working, that error message says it can't find UrlRewritingNet.UrlRewriter.dll in the Umbraco bin directory.

    I'd check it is there and that you haven't somehow excluded it.

    hth

    Jay

  • PolishPaul 11 posts 31 karma points
    Sep 06, 2011 @ 16:48
    PolishPaul
    0

    Thank you all for your replies.

    I think a little bit of sleep also helped :) I'm not sure what i was doing wrong but in the end i had to put my class files in the App_Code folder of Umbraco. However, is there a way to have Umbraco installed on a site and have other folders COMPLETELY independend of Umbraco? The idea that comes to mind is to install it as a separate applicatoin, but then it wouldn't run from domain root...

    EDIT: Can someone point me to some documentation about integrating your own apps into Umbraco?

    Basically I want to use Umbraco to setup a "portfolio" website where i can showcase ASP.NET and other projects.

  • Tommy Albinsson 121 posts 254 karma points
    Sep 09, 2011 @ 08:46
    Tommy Albinsson
    0

    Hi Paul,

    I have just developed a intranet for the company that i work for. We had the problem when adding old applications under our umbraco installation. But we managed to solve it and created a web.config "template" on what to remove.

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <configSections>
    <remove name="urlrewritingnet" />
    </configSections>

    <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <httpModules>
    <remove name="UrlRewriteModule" />
    <remove name="umbracoRequestModule" />
    <remove name="viewstateMoverModule" />
    <remove name="umbracoBaseRequestModule" />
    <remove name="ClientDependencyModule" />
    </httpModules>
    </system.web>

    <system.webServer>
    <modules>
    <remove name="UrlRewriteModule" />
    <remove name="umbracoRequestModule" />
    <remove name="viewstateMoverModule" />
    <remove name="umbracoBaseRequestModule" />
    <remove name="ClientDependencyModule" />
    </modules>
    </system.webServer>
    </configuration>

    Also a note, if you want to use membership authentication and use the same session across your applications you can use the machinekey element in the web.config, as you would in a webfarm. Somewhere in the system.web element you add the entry down below to every one of the web.config files of the applications you would like to share the logged in user. You can use this site to generate your own machinkey, http://www.orcsweb.com/articles/aspnetmachinekey.aspx

            <machineKey validationKey='9E15EB7669FD8D0A19A79A2B0CDCAE4DCD5D94C9843061E8BA9ECE3B42BD09D54D26B83F08B82ACDD77AFDAC03809ED56E689B73AC2F841C3DAB2868344AC1A0' decryptionKey='C0E830697428BB0AA18E229CD594A5474627CB1A290428D2' validation='SHA1'/>
Please Sign in or register to post replies

Write your reply to:

Draft