Monday, January 31, 2011

This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.

When Addind a UserControl which fletch Data from a Sql Data Source, check the below scenario:

Despite the connection string is correct:
add name="StudentsConnectionString"
connectionString="Data Source=localhost\SQLEXPRESS;
Initial Catalog=Students;Integrated Security=True"
providerName="System.Data.SqlClient

You are getting the following error:
This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’.


=> Please refer to the following Microsoft Kb: http://support.microsoft.com/kb/555967

No comments:

Post a Comment