This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello,
The feature comparison chart tells me that Lightspeed can run under medium trust. However, my experience is different.
After succesfully installing and configuring LS on a local website, I tried deploying it on a shared hosting environment (with medium trust).
Didn't work there:
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.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Looks like LS requires access to the reflection permission, which isn't included in medium trust.
Is the comparison chart incorrect, or is there something else I can do to make this work on a shared hosting platform?
|
|
|
You need to be using a nightly build, and to set LightSpeedContext.MediumTrustCompatibility = true. There are also a couple of restrictions on how you write your entities in medium trust. If you are using the designer rather than writing classes by hand, you should set Medium Trust Compatibility on the model. Please see http://www.mindscape.co.nz/blog/index.php/2009/02/15/running-lightspeed-under-medium-trust/ for further info. Please let us know if you still run into problems! |
|