Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 29th, 2008, 10:22 AM
Registered User
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default p660 IIS set up - error: 26

Have the Wrox United happily working with VWD. However I want to get this running with IIS - one reason is that I want to host future databse applications from an IIS. I have two XP Pro units with IIS & I keep getting the same error when trying to run the default.aspx, despite following the instructions from p660 - it is my understanding you do not need SQL Server Express installed to get this application working. ( I have seen many archived blog but none with a specific answer)
The error I keep getting is
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Is there something easy I can change in the connection string. One blog suggested deleting the user instance = true, have done this but to no avail.

Any suggestions would be very welcome

 
Old April 29th, 2008, 03:07 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The problem isn't necessarily with the connection string. As the error message suggests, the default configuration for SQL Server 2005 is to not accept incoming connections over a network. So you need to go to "Microsoft SQL Server 2005" -> "Configuration Tools" -> "SQL Server Configuration Manager". Then drill down into "SQL Server 2005 Network Configuration" -> "Protocols for x", where x is your SQL server instance name. On the right you'll see the available protocols and their status. Enable TCP/IP and you should then be able to connect to it from another machine.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem set up IIS ---- URGENT wk SQL Server 2000 3 September 11th, 2008 03:04 AM
Chapter 26 XML Web Services - error handing? RichDiaz BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 August 20th, 2007 04:47 PM
urgently--How We set the IIS for deploying website jaymin ASP.NET 1.0 and 1.1 Professional 0 July 18th, 2005 06:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.