Medium Trust File Upload Error

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/1/2009 6:36:37 PM
Gravatar
Total Posts 3

Medium Trust File Upload Error

Windows 2003, MSSQL, 2.3.1.9

Attempting to upload an image (or any file) I get an error. In the system log it reads:

2009-11-01 23:14:56,570 ERROR mojoPortal.Web.mojoBasePage - 81.149.89.132-en-US - /Admin/FileManager.aspx
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at System.IO.Path.GetTempPath()
   at Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.GetDefaultTempDirectory()

This is running as Medium Trust (on a shared host) with the medium trust config, with all the NeatUpload stuff commented out, so I am at a loss as to why it's trying to use the component.

Has anyone else come across this?

Many thanks

Adrian

11/7/2009 1:28:33 PM
Gravatar
Total Posts 18439

Re: Medium Trust File Upload Error

Make sure the App_Data fodler is writable by the web process user and I think it will solve this issue.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.