Medium Trust Environment


Let me first begin with thank you for developing and sharing this code. I have use it for some time in a few galleries hosted with WebHost4LIfe, but do to slow response times with my DNN sites I moved to GoDaddy for hosting. But now my galleries using LightBox.dll do not work. GoDaddy support tells me...

Our hosting administrators have determined that the assemblies are the issue, specifically lightbox.dll, which may not work as configured within a medium trust environment. Here is an example of the error:

FileLoadException: Could not load file or assembly 'LightBox, Version=0.1.2006.726, Culture=neutral, PublicKeyToken=69adabc7dfa9ff4c' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

Is this something that can be fixed so it can run in a Medium Trust Environment? Not even sure what that means...

Thank you for any help.



jglozano wrote Sep 29, 2007 at 12:02 AM

Sorry to say this, but I never tested it on a medium trust environment. I will look into this and add it to the next release. I've been pretty busy at home and haven't had time to publish out the new code for everyone to enjoy.

wrote Nov 26, 2007 at 3:05 PM

mparter wrote Jan 11, 2008 at 3:10 PM

Any news on when this will be fixed and released. This is a great project which unfortuantely I can't use (and I iamgine many others) as my host uses a medium trust environment, as do most hosts.

deesnider wrote Mar 9, 2008 at 3:57 AM

It's one of the settings in the AssemblyInfo.cs file. I edited the file in my copy of the source code to comment out the following line (as shown):

//assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)

Recompile the assembly, it should then work in a medium trust environment (does in mine). HTH until a fix is implemented...

wrote Feb 13, 2013 at 10:54 PM