Cannot add App_Data SQL Server database

Posted by Interfector on Stack Overflow See other posts from Stack Overflow or by Interfector
Published on 2010-05-09T21:34:26Z Indexed on 2010/05/09 21:38 UTC
Read the original article Hit count: 150

Hello, Using Visual Studio 2010 10.0.20319.1 RTMRel and SQL Server Express 10.50.1600.1 I'm trying to add a new SQL Server Database .mdf, however, I receive the following error:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 – Connection string is not valid)

I have enabled TCP/IP and Named Pipelines, added Firewall Exceptions for Sql Server, I am successfully connecting from VS in the Server Explorer window.

I would appreciate if someone can pint me to a solution to my problem.

Thank you.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about sql-server-2008