ASP.NET Error: Provider: SQL Network Interfaces, error: 25 – Connection string is not valid

Connection string was like this;

<add name=”MyDbConnectionString” connectionString=”Server=(svrcis)\MSSQLSERVER; Database=WebRegister; User Id=WebRegister; Password=poker; Trusted_Connection=false;”
providerName=”System.Data.SqlClient”/>

I removed the instance name and worked for me:

<add name=”MyDbConnectionString” connectionString=”Server=svrcis; Database=WebRegister; User Id=WebRegister; Password=poker; Trusted_Connection=false;”
providerName=”System.Data.SqlClient”/>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s