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
Simple solution is to change the trust the trust level to FULL
<trust level="[Full]" originUrl="URL" />