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
yboc
Posts
-
Question about SqlClientPermission - SecurityException -
Who knows what I need to install in the client system to run a C# application?Thank you very much for the response. I did add the code in the project. And then 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? Thanks. coby
-
Who knows what I need to install in the client system to run a C# application?I got below error message when I try to run my application on a Win2000 system with .netframework 1.1 installed. Application has generated an exception that could not be handled. No debugger found. Registered JIT debugger is not available. An attempt to launch a JIT debugger with the following command resulted in an error code of 0x2(2) . Please check computer settings. cordbg.exe ! a 0x724. Pls help me. Thanks a lot for your replying. Thanks. coby
-
Hashtable problemThanks a lot. It is a good idea.
-
Hashtable problemHashtable approval = new Hashtable(); //then I added some keys to it and set the value to "" //I need to set its value to "" again by below foreach foreach( object obj in approval.Keys ) { approval[obj] = ""; } //But it said that "Collection was modified; enumeration operation may not execute." //Pls help me to make this possible. Thanks a lot for your attention.