Question about SqlClientPermission - SecurityException
-
I can run my C# .net application in the system I use to develop it, but when I deployed the application to a windows 2000 system with .netframework installed, I got below message: System.Security.SecurityException: Request for the permission of type System.Data.SqlClient.SqlClientPermission,System.Data, Version= 1.0.5000.0, Culture= neutral, PublickeyToken=b77a5c561934e089 failed. at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet,PermissionSet deniedSet, CodeAccessPermission demand,PermissinToken permToken, ..... It seems that I can't get the permission to access Sql server. Could you pls tell me how to resolve this issue? Can anyone help to let me know how to set the permission to the application / user ? Thanks. coby
-
I can run my C# .net application in the system I use to develop it, but when I deployed the application to a windows 2000 system with .netframework installed, I got below message: System.Security.SecurityException: Request for the permission of type System.Data.SqlClient.SqlClientPermission,System.Data, Version= 1.0.5000.0, Culture= neutral, PublickeyToken=b77a5c561934e089 failed. at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet,PermissionSet deniedSet, CodeAccessPermission demand,PermissinToken permToken, ..... It seems that I can't get the permission to access Sql server. Could you pls tell me how to resolve this issue? Can anyone help to let me know how to set the permission to the application / user ? Thanks. coby
Just curious, does the credentials in your connection string have the proper security access ?
R.Bischoff .NET, Kommst du mit?
-
Just curious, does the credentials in your connection string have the proper security access ?
R.Bischoff .NET, Kommst du mit?
It seems that the issue is because the .net framework can't get the permission to run sql store procedure locally. What I can saw is the connection string can get the server and uid but the pwd is cut. Actually, I did nothing to cut it in the program. Really strange, isn't it?