Copied to clipboard

Flag this post as spam?

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


  • Joey 6 posts 26 karma points
    Jul 13, 2010 @ 09:56
    Joey
    0

    Umbraco on shared hosting

    Hello all,

    I am new tot the whole umbraco thing and currently doing a student job here in Belgium.
    My task at the moment is to migrate the current Umbraco websites to the new Shared Hosting environment.
    Currently they are hosting the websites on their own server so there is no problem in hosting umbraco in full trust.
    Ofcourse the Shared Hosting provider (Hostbasket) only allows Medium Trust. I have read alot about medium trust issues but I can't seem to find a decent solution...

    They are now running Umbraco 2.1 so i thought it would be nice to upgrade to version 4.5. In the release notes I see that it should support Medium Trust. But nowhere is a guide or solution for how to do this...

    Can maybe someone give me some tips? I searched alot with my google friend but no succes so far...

    Thanks in advance!

    Joey

  • Joey 6 posts 26 karma points
    Jul 13, 2010 @ 10:02
    Joey
    0

    Since i can't seem to edit my topic I wanted to say that i already edited the web.config file with these lines:

    <add key="umbracoUseMediumTrust" value="true" /> 

    and

    <trust level="Medium" originUrl=".*" />

    Greets

  • Joey 6 posts 26 karma points
    Jul 14, 2010 @ 09:15
    Joey
    0

    Ok I downloaded one of these builds and it works almost: http://nightly.umbraco.org/umbraco%204.1%20for%20asp.net%203.5/4.1/

    The only thing that isn't working are the layouts. I see the installer and can click next and complete the installation. But no layout... Also when it is installed I see the text but no layout. Maybe it is a permission problem at the host side? I mailed to them since I can't modify any setting (Shared Hosting).

    Fault with FireBug:

    Server Error in '/' Application.

    Security Exception

     

    Description: The application attempted to perform an
    operation not allowed by the security policy.  To grant this
    application the required permission please contact your system
    administrator or change the application's trust level in the
    configuration file.

    Exception Details: System.Security.SecurityException:
    Request for the permission of type
    'System.Security.Permissions.EnvironmentPermission, mscorlib,
    Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    failed.

    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:
    [SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
    System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
    System.Security.CodeAccessPermission.Demand() +61
    System.Environment.get_MachineName() +66
    ClientDependency.Core.CompositeFiles.CompositeFileXmlMapper.Initialize() +94
    ClientDependency.Core.CompositeFiles.CompositeFileXmlMapper..ctor() +28
    ClientDependency.Core.CompositeFiles.CompositeFileXmlMapper..cctor() +21








    Version Information: Microsoft .NET Framework
    Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

    Greets

  • Joey 6 posts 26 karma points
    Jul 15, 2010 @ 10:20
    Joey
    0

    Ok

    Apparently if I change the Apllication Pool's Identity of this site it works. I chose NetworkService as identity.

    I also edited the site permissions and gave full control to the "user" NETWORK SERVICE.

    So i think the permissions are the main issue here...

    Finally got it working!

    Thx for the help ;)

  • wolulcmit 357 posts 693 karma points
    Jul 15, 2010 @ 11:07
    wolulcmit
    0

    t'was a pleasure... anything else ? :D

  • Joey 6 posts 26 karma points
    Jul 15, 2010 @ 11:12
    Joey
    0

    Yes,

    I now have to start the upgrade from Umbraco 2.1 to 4.5 :P

    So do I have to upgrade to 3.0 first and then to 4.5?

  • wolulcmit 357 posts 693 karma points
    Jul 15, 2010 @ 11:18
    wolulcmit
    0

    I'm not sure about that, since 2.1 is fairly old, it might be a bit of a risky upgrade path to take....
    you might be better off starting a fresh from 4.5 and importing your data somehow.
    but I'm not really the person to ask since I've only been onboard since 4.0. Anyone else?

    - Tim

  • Joey 6 posts 26 karma points
    Jul 15, 2010 @ 11:34
    Joey
    0

    Yeah,

    They never updated their umbraco websites :)

    So now I have to solve it :p

    Any help welcome :)

    Thx

  • Wesley Herpoelaert 52 posts 123 karma points
    Sep 22, 2010 @ 09:05
    Wesley Herpoelaert
    0

    Hi,

    Were you able to run a website with the Shared Hosting provider Hostbasket in Medium Trust?

    Because i can't get it to run...

    Thx

Please Sign in or register to post replies

Write your reply to:

Draft