Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have written a WCF service with database connection in Visual Studio 2012. When I deploy the database on my server I get a The server encountered an error processing the request. The exception message is 'Instance failure.'. See server logs for more details. error.

I followed the steps from to help me but it only helped me to an extent. My connection string seems to be the problem. My connection string is Data Source=.\\MSSQLSERVER;Database=jarvis;Integrated Security=SSPI;User Id=sa;Password=123.

The server that I am using is running SQL Server 2012 Developer edition. What courses this problem and how can I fix this?
Posted

1 solution

First of all, check connection string: http://www.connectionstrings.com/sql-server/[^]

You need to properly setup SQL Server to enable tcp/ip or named pipes connections.
See: http://msdn.microsoft.com/en-us/library/ms189321.aspx[^]
http://msdn.microsoft.com/en-us/library/ms181035.aspx[^]
http://technet.microsoft.com/en-us/library/aa178138%28v=sql.80%29.aspx[^]

In some cases, you need to setup Windows Firewall: http://msdn.microsoft.com/en-us/library/cc646023.aspx[^]
 
Share this answer
 
Comments
Member 10935750 18-Jul-14 16:42pm    
I had a user access property problem but thanks for the help
Maciej Los 18-Jul-14 16:44pm    
You're welcome ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900