System.Security.Permissions.FileIOPermission error on Umbraco 4
Hi All,
I've just created a new site with Umbraco 4.0 using .NET Framework 2.0 as this is the highest version the hosting company have running on servers.
I've also installed the Medium Trust project and I've got the editor working but when I try to create a new page, xslt, macro, change the hostnames I get the following error:
System.Security.SecurityException:
Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.
The hosting company is 1 and 1 and there is nothing I can do to change other permissions or .NET version as its on a shared host. And so the customer service is pants so was wondering if anyone has resolved this issue themselves
Aha. Is is the out-of-the-box release from Codeplex? Shared hosting isn't supported with the 4.0.3 OOB release unless you have this release instead (copy and paste the DLLs over the top).
Best,
Benjamin
P.S. Unsupported, use at own risk, it's a fork I made back in December for shared hosting environments.
In which case it's not a MedTrust error, it sounds like it's a generic file permission error. Even with shared hosting you should still be able to specify read/write permissions on folders - can you try and find the file manager section in your hosting and see if write attributes have been allowed?
I am getting the same error but only when uploading a file under the Media section. I am able to successfully add/delete, add/delete hostnames and publish nodes.
I am running Umbraco 4.5.1 on Rackspace's Cloud Sites (Mosso) hosting environment. Mosso runs windows on top of a native Unix environment. The permissions are therefore in Linux. All of the files/folders are set to 777
Owner (Read/Write/Execute)
Group Permissions (Read/Write/Execute)
Public permissions (Read/Write/Execute)
which is equivalent to "Everyone" role with full control in Windows. Does anyone have any suggestions on why this security permission exception is getting thrown? Does anyone have 4.5.1 successfully running on Mosso?
System.Security.Permissions.FileIOPermission error on Umbraco 4
Hi All,
I've just created a new site with Umbraco 4.0 using .NET Framework 2.0 as this is the highest version the hosting company have running on servers.
I've also installed the Medium Trust project and I've got the editor working but when I try to create a new page, xslt, macro, change the hostnames I get the following error:
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The hosting company is 1 and 1 and there is nothing I can do to change other permissions or .NET version as its on a shared host. And so the customer service is pants so was wondering if anyone has resolved this issue themselves
Thanks
Tom
Hi Tom,
Definitely sounds like a Medium Trust issue, (but not sure what exactly).
Best bet is to drop Benjamin Howarth a line and see if he can help out?
Cheers, Lee.
Cheers Lee,
I'll give Ben a shout and see if he has any ideas.
Thanks
Tom
Hey Tom.
On the surface of it, it would appear to be a MedTrust issue. Can you copy and paste the full stack trace here?
Best,
Benjamin
Hi Ben,
The stack trace is as follows:
Thanks for taking a look.
Tom
Hi Tom,
Can you confirm if this is Umbraco 4.0.x or 4.5.x?
Many thanks,
Benjamin
HI Ben,
This is Umbraco 4.0.3
Thanks
Tom
Aha. Is is the out-of-the-box release from Codeplex? Shared hosting isn't supported with the 4.0.3 OOB release unless you have this release instead (copy and paste the DLLs over the top).
Best,
Benjamin
P.S. Unsupported, use at own risk, it's a fork I made back in December for shared hosting environments.
Hi Ben,
I've copied the DLLs over the top and still getting the same error.
I've also used the config in the package. Would it be best to perform an install with this files from stratch?
Thanks
Tom
In which case it's not a MedTrust error, it sounds like it's a generic file permission error. Even with shared hosting you should still be able to specify read/write permissions on folders - can you try and find the file manager section in your hosting and see if write attributes have been allowed?
I am getting the same error but only when uploading a file under the Media section. I am able to successfully add/delete, add/delete hostnames and publish nodes.
I am running Umbraco 4.5.1 on Rackspace's Cloud Sites (Mosso) hosting environment. Mosso runs windows on top of a native Unix environment. The permissions are therefore in Linux. All of the files/folders are set to 777
Owner (Read/Write/Execute)
Group Permissions (Read/Write/Execute)
Public permissions (Read/Write/Execute)
which is equivalent to "Everyone" role with full control in Windows. Does anyone have any suggestions on why this security permission exception is getting thrown? Does anyone have 4.5.1 successfully running on Mosso?
Thanks!
I was able to resolve my issue by having my hosting provider (Rackspace's Cloud Sites - Mosso) install symlinks.
For complete steps, please see my post here: http://our.umbraco.org/forum/getting-started/installing-umbraco/2779-Installing-on-the-Rackspace-cloud-Mosso
is working on a reply...