I have developed a web part and trying to access the SQL Server 2008 from the button click Event in the web part and I get the following error.
Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
I have tried this post but not helped me. I want to find out what is cause for this error.