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.