SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

Medium Trust/Security Exception Options
shekky
#1 Posted : Friday, March 14, 2008 8:34:16 AM
Rank: Newbie

Groups: Registered

Joined: 3/14/2008
Posts: 2

Is SlickUpload supposed to run under a Medium Trust environment? I am getting a security exception. Here's the details:

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.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +59
   System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65

ChrisHynes
#2 Posted : Wednesday, March 19, 2008 11:02:01 AM
Rank: Administration


Groups:

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ
SlickUpload (and all ASP.NET upload handlers in general) requires a little more trust than medium trust allows (reflection permissions, etc.). Most hosting providers use a modified medium trust setup that allows SlickUpload to work. What host are you attempting to use?
shekky
#3 Posted : Thursday, March 20, 2008 11:28:25 AM
Rank: Newbie

Groups: Registered

Joined: 3/14/2008
Posts: 2

We are using hostek.

ChrisHynes
#4 Posted : Monday, March 24, 2008 7:45:00 PM
Rank: Administration


Groups:

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ
Ask them what trust level they are running under. If it is medium trust, you'll need to either get them to install SlickUpload in the GAC, bump the application to full trust, or add a modified medium trust configuration. If they need a list of permissions SlickUpload requires, I can provide that.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.