I am trying to test 4.5.1 in medium trust with MySql locally (XP, MySql, .NET 4.0) and I can't get the installer to run. I know I must be doing something wrong, but I can't figure it out. I have already done the following:
Set umbracoUseMediumTrust = true in web.config
Uncommented <trust level="Medium" originUrl=".*" /> in web.config
Set ASPNET read/write file permissions
However, I am still getting this error when I run the site:
[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
System.Security.CodeAccessPermission.Demand() +46
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +99
Well, I figured out that by adding requirePermission="false" to the client dependency section I was able to get the installer to run.
However, now the installer cannot connect to a local MySql database. If I bump the trust level back to full it can connect (oddly, it can connect to MSSql in medium trust). Any thoughts?
I had to add SocketPermission to the mediumtrust config file. I assume most shared hosts will already have this configured since it is required for MySql in medium trust.
I had some issues getting Umbraco 4.5.1 to work in a Medium Trust environment at Webstekker, but adding requirePermission="false" to the client dependency section did the trick. So thanks for the tip!
4.5.1 Medium Trust Install Issue
I am trying to test 4.5.1 in medium trust with MySql locally (XP, MySql, .NET 4.0) and I can't get the installer to run. I know I must be doing something wrong, but I can't figure it out. I have already done the following:
However, I am still getting this error when I run the site:
Well, I figured out that by adding requirePermission="false" to the client dependency section I was able to get the installer to run.
However, now the installer cannot connect to a local MySql database. If I bump the trust level back to full it can connect (oddly, it can connect to MSSql in medium trust). Any thoughts?
Problem solved.
I had to add SocketPermission to the mediumtrust config file. I assume most shared hosts will already have this configured since it is required for MySql in medium trust.
I had some issues getting Umbraco 4.5.1 to work in a Medium Trust environment at Webstekker, but adding requirePermission="false" to the client dependency section did the trick. So thanks for the tip!
is working on a reply...