I kept getting a SqlClientPermission error from a custom .NET component I built that calls a local database on my test server. After some research, I decided to use a SqlClientPermission object (code below), however, that has not resolved the issue.
Now (with the code below trying to grant my code Unrestricted access), I get the error:
"Request for the permission of type 'System.Security.Permissio
n, mscorlib, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c56193
All of my Zones are configured for Full Trust (via the 2.0 Framework Configuration Tool). I cannot figure out what the issue is. Any and all suggestion, references, and help are very greatly appreciated. There has got to be a way to fix this... but I can't see it!!! :)
Thanks a ton in advance.
SqlClientPermission permission = new SqlClientPermission(PermissionState.Unrestricted);