Named Pipes Provider, error:40 - Could not open a connection to SQL Serverin the sqlconnection string u use
Data Source=.\SQLEXPRESSinstead of DataSource=localhost or (local)It worked for me.....