Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data
Posted
by joebeazelman
on Stack Overflow
See other posts from Stack Overflow
or by joebeazelman
Published on 2010-04-03T02:22:01Z
Indexed on
2010/04/03
2:33 UTC
Read the original article
Hit count: 642
I created an assembly containing WCF service code and dropped into another web project. When I try to invoke a service method, I get the following inner exception:
Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Why this is happening? My newly created assembly lives inside the ASP.NET /bin folder along with other assemblies. At this level, should the database not know or care whether it is being called from a web service or from a normal call? How would it know that my assembly is foreign? How do I resolve this issue?
© Stack Overflow or respective owner