D
davidw
I encountered strange issues. I have code like this
sqlReader = SqlHelper.ExecuteReader(connString,
System.Data.CommandType.Text,sql);
It calls Microsoft.ApplicationBlocks.Data to execute a sql statement. It
worked fine, but after I did some modifications to my dll, I got error. The
strange thing is the first call to the code runs fine, but the calls after
will return the following error:
Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
I searched on the Internet, several articles point out the error is about
sharepoint and dll on shared folder. But that is not my situation. Any idea?
Thanks!
sqlReader = SqlHelper.ExecuteReader(connString,
System.Data.CommandType.Text,sql);
It calls Microsoft.ApplicationBlocks.Data to execute a sql statement. It
worked fine, but after I did some modifications to my dll, I got error. The
strange thing is the first call to the code runs fine, but the calls after
will return the following error:
Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
I searched on the Internet, several articles point out the error is about
sharepoint and dll on shared folder. But that is not my situation. Any idea?
Thanks!