Sunday, 14 January 2007

Hi

Sometimes I run into this error, when deploying a BizTalk project from VS.NET: "An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

I take a quick look at it, bang my head in the desk for doing it again, and then I perform the following steps:

  1. Rightclick on the project and choose Properties
  2. Go to "Configuration Properties" => "Deployment"
  3. Change the "Server" property to be the servername of the SQL Server you are deploying to
  4. Save changes
  5. Deploy again

This happens if you receive a copy of someone elses project - since the servername is listed in the projectname.btproj.user file that is a part of the project.

Hope someone else gets quickly past this hurdle now it has been blogged.

--
eliasen

Sunday, 14 January 2007 21:43:48 (Romance Standard Time, UTC+01:00)  #    Comments [4]  | 
Friday, 26 January 2007 14:35:27 (Romance Standard Time, UTC+01:00)
another thing that I like to do, when on the development cycle is to change the name of the server field to (LOCAL). This way you can share your code.
Tuesday, 04 December 2007 21:41:09 (Romance Standard Time, UTC+01:00)
Thanks for the blog post ... I just moved some apps from one dev machine to another, and sure enough, I forgot to change the deployment server name ... so it goes
Ashwin Srinivas
Tuesday, 04 December 2007 21:43:14 (Romance Standard Time, UTC+01:00)
Yeah, exactly what happened to me :-)

Glad I could help.

--
eliasen
Sunday, 19 July 2009 13:32:00 (Romance Daylight Time, UTC+02:00)
Hi

i was facing the error when opening connection using sqlconnection

nw got solved


http://sqlservererror-info.blogspot.com/2009/07/error-has-occurred-while-establishing.html

http://aspnetmembershipprovider.blogspot.com/2009/02/error-has-occurred-while-establishing.html


See This
All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview

Theme design by Jelle Druyts