This project is read-only.

Medium Trust Environment?

Topics: Developer Forum, User Forum
Sep 27, 2007 at 1:54 AM
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.

Jim
Sep 29, 2007 at 12:00 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Mar 9, 2008 at 3:13 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...