This is intended to be a repository for installing Umbraco in Medium Trust environments. Please add your experiences.
Version 4.5 & 4.6
According to Benjamin Howarth in this forum post, medium trust is not supported out of the box in 4.5 and 4.6. He has made versions of 4.0 to 4.6 work in medium trust envrionments, only varying levels of code modifications were required.
Version 4.7
Installation is supported in medium trust mode. To get a site running from installation, make the following modifications to the web.config file:
- Under system.web, create the following element:
<trust level="Medium" originUrl=".*" />
- Under appSettings, set the key "umbracoUseMediumTrust" to "true"
- Under the configSections, modify the section element that has name="clientDependency" to have an attribute requirePermission="false"
after this I was able to get an install to work on a local box running Windows 7 Home Premium, IIS 7. Umbraco configuration was using a blank SQL Server database and no starter kit.
Using all but the first web.config modification (the <trust> element), I was able to get an uploaded Umbraco instance to work on a shared-hosting account (by 'uploaded instance' I mean a full-trust, normal Umbraco installtion I made on my local machine, which then I copied all the files to the shared-hosting FTP and modified to the web.config to get the site to run again. The host in my case was GoDaddy.).
WIKI Page TODO:
- Document v5
- Test other configurations (MySQL, SQL CE, starter kits, etc.)