asp.net - cannot establish a connection to SQL Server -


I have a web app that I developed using Visual Web Developer 2010. The database is local inside the solution:

  & lt; Add name = "SFDBConnectionString" connectionString = "data source =. \ SQLEXPRESS; AttachDbFilename = | DataDirectory | \ SFDB.mdf; Integrated Security = True; User Instance = True" Provider Name = "System.Data .qlClient" />   

I'm trying to run an application on another machine using Visual Studio 2010 instead of Web Developer and it is giving me the following error while trying to connect to the database. :

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 example name is correct and SQL Server is configured to allow remote connection. (Provider: SQL Network Interfaces, Error: 26 - Error specifying server / instance) Specify

Anyone have any ideas on what can happen to anyone?

Generally, this error message actually means what ... do you have UI client (eg Can I Connect to SQL Server Through Management Studios? If so - how do you do that (user / password or Windows authentication; what is a server name)? What is the connection string? Here you have a connection string for SQL Express (which works), it is not very helpful - but forgot to put the connection string which not work if you connect to the UI And the connection string is correct - there is no reason because the code throws an error!

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -