Click to See Complete Forum and Search --> : SQL permission error vb.net


retesh_gondal
05-18-2007, 03:21 AM
The application works absolutelly fine from my machine but the same application is giving the following error when run from a network machine.

System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.PermissionSet.Demand()
at System.Data.Common.DbConnectionOptions.DemandPermission()
at System.Data.SqlClient.SqlConnection.PermissionDemand()

Please help!

Cstick
05-21-2007, 12:05 AM
Are you running the executable from a network drive or shared location? If so, try copying the executable and its related content files to the local computer's hard disk and execute from there.