Strange! please help. Request for the permission of type System.Data.SqlClient ...

  • Thread starter Thread starter davidw
  • Start date Start date
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!
 
David,

Can you be more clear about the modifications that you made to your
class which might have caused the error?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top