I want to simulate the trust levels of a shared hosting environment on my development machine so that there are no nasty surprises when I come to deploy my solution.
I added this my setting the web.config:
<trust level="Medium" originUrl="*"/>
The only problem with this is that I'm getting this exception when I try to save to my database:
InnerException:
System.Security.SecurityException
Message="Request for the permission of type
'System.Net.SocketPermission, System,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
failed."
Source="mscorlib"
How do I specifically allow this while still maintaining medium 'like' trust. Are there other things I can resonably allow?. Ill be hosting on GoDaddy.
Best Answer
I contacted Godaddy, and got this responce:
So people can use this as an indication of what shared hosting permissions are generally like.
When I figure out how to create these permissions as outlined in @blowdards link ill post them. Or if anyone could post an example that would be great.