Copied to clipboard

Flag this post as spam?

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


  • mc 19 posts 39 karma points
    Nov 06, 2009 @ 12:43
    mc
    0

    Installing another bespoke web application inside Umbraco

    Hello
    I'm struggling to get my bespoke web application to work when placed into a folder inside the umbraco folder. Here is what I've done so far:

    1. I've installed Umbraco 4 on my local development PC (XP PRO with IIS). The default website in IIS it pointing to Umbraco4.

    2. I've created a new folder inside Umbraco4 and called it "MyApps". Inside "MyApps" I've placed my web application in. So setup is as follows:
    C:\Inetpub\Umbraco4\MyApps\BespokeApp

    3. I've set BespokeApp as an Application in IIS with Medium Pool.

    4. I've added the following to exclude my bespoke web app from Umbraco (added "/myApps/" as inside here is my bespoke app):
    <add key="umbracoReservedPaths" value="/umbraco,/install/,/MyApps/" />

    5. I was getting lots of errors and have managed to fixed them by adding the following to the web.config file inside my "BespokeApp" folder:

    <

    httpModules>
    <
    add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <!--
    UMBRACO -->
    <
    remove name="UrlRewriteModule" />
    <
    remove name="umbracoRequestModule" />
    <
    remove name="viewstateMoverModule" />
    <
    remove name="umbracoBaseRequestModule" />
    <!--
    UMBRACO END -->
    </
    httpModules>

     


    5. However I can't seem to resolve the following error: Could not load type 'umbraco.providers.members.UmbracoRoleProvider'.  I'm sure there are many more waiting for me. Please can you help with this?

    Thanks.

    M

  • Petr Snobelt 923 posts 1535 karma points
    Nov 06, 2009 @ 12:53
    Petr Snobelt
    0

    Errors is caused by web.config inheritance, you can look at google if it can be sisabled, your error is caused by role manager, If you don't use it, try

    <roleManager enabled="false" />

  • Chris Koiak 700 posts 2626 karma points
    Nov 06, 2009 @ 12:57
    Chris Koiak
    1

    Hi,

    Could you set up your folder as a Virtual Directory, this should stop the web.config being inherited.

    Another option would be to run your application as a separate website, that responds to a subdomain... webapp.domain.com.

    Cheers,

    Chris

  • mc 19 posts 39 karma points
    Nov 06, 2009 @ 13:07
    mc
    0

    Thanks for the quick response. I added  <roleManager enabled="false" /> to the web.config on my bespoke app.

    If I now go to the site http://localhost:81/bespokeApp

    I get the error below. I've re-applied IUSR and ASPNET user at the Umbraco4 Folder and made sure this has been passed to my app. 
    Thanks M.

    Access is denied.

    Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

    Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance.
     

  • mc 19 posts 39 karma points
    Nov 06, 2009 @ 13:30
    mc
    0

    Right, ignore my last message, I fogot to set this to integrated security in IIS.

    Next error I get is:
    Parser Error Message: Could not load file or assembly 'umbraco' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 89:       <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    Line 90:       <!-- UMBRACO CHANNELS -->
    Line 91:       <add verb="*" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
    Line 92:       <add verb="*" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
    Line 93:     </httpHandlers>

    1. So I google around and find the following fix ::

    <!--

     

    UMBRACO -->
    <
    remove verb="*" path="umbraco/channels.aspx" />
    <
    remove verb="*" path="umbraco/channels/word.aspx" />
    <!--
    UMBRACO END -->

    2. But now i get the error below. I'm sure i'll get there in the end :) any ideas how to fix this one?
    Unrecognized attribute 'verb'. Note that attribute names are case-sensitive.

    Source Error:

    Line 85: 
    Line 86:            <!-- UMBRACO -->
    Line 87:          <remove verb="*" path="umbraco/channels.aspx" />
    Line 88:             <remove verb="*" path="umbraco/channels/word.aspx" />
    Line 89:            <!-- UMBRACO END -->


     

  • mc 19 posts 39 karma points
    Nov 06, 2009 @ 13:36
    mc
    0

    SOLVED! I had the below under  httpModules and not httpHandler. Thanks for you help, I was getting a little fustrated with this but it wasn't too bad. Hopefully I can take the pain away for others now :)

     

     

    <

    remove verb="*" path="umbraco/channels.aspx" />
    <
    remove verb="*" path="umbraco/channels/word.aspx"/>

     

     

Please Sign in or register to post replies

Write your reply to:

Draft