none
Error while connecting to sql server with Microsoft application blocks RRS feed

  • Question

  • I am facing error while connecting to sql server database with Microsoft Application Blocks in windows .net application. 

    Same is working fine in web applications.

    Following is the error:

    System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

     

    I have seen some forums and have reset all the security permissions under >net Framework COnfiguration-> Runtime Security Policy-> Machine

    But i am facing with the same problem

    Please help.

     

    Regards,

    Gaurav


    Gaurav
    Thursday, April 8, 2010 11:55 AM

Answers