Author: rharrison | Posted on: 5/6/2009 9:51:45 AM | Views : 261

Hello,

I am getting a System.Security.SecurityException after uploading my website to GoDaddy's web hosting product.  I think it is caused by the fact that they are set to Medium Trust level.

The error it lists is on the 'End Sub' line (line 38 below) of the Session_Start method in the Global.asax file.  All I have in this method is code that sets Session Variables (all string values).

I am wondering if I am not allowed to use Session Variables with Medium Trust?
If that is the case, what should I use instead?  I need something like a Session Variable to properly fill in text and directory paths for Images, etc.
If these session variables are not the issue, any ideas on where I might look? 
Any documents on best practices for developing a Medium Trust level compliant website?

Any help here is greatly appreciated!

Here is the code:
1 Go to the complete details ...