Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 February 7th, 2007, 10:01 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SqlException on Profile.Cart pages

I designed a shopping cart site based on the Wrox United site. Everything works fine locally, but when I publish to the server, I get the following error when trying to view the shopping cart page or any page that references the Profile.Cart:

System.Data.SqlClient.SqlException: 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)

It has nothing to do with the database or connection strings, because I can view the master/detail pages just fine. I am working in VB. Thanks.

 
Old February 12th, 2007, 08:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 105
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to DanM
Default

Hi Disturbed Buddha,

I'm not sure exactly what \ how things aren't working, but have a look at the solution part of http://blogs.ipona.com/dan/archive/2...WoesPart1.aspx to make perfectly sure that it's not a connection issue on one side or another.

If you switch on custom errors in your web.config file, you should get some more information about the error beyond this generic information. Let me know how you get on.

dan

Dan Maharry
Read the feed at http://feeds.feedburner.com/dansarchive





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sqlexception monika.vasvani ASP.NET 2.0 Basics 0 June 12th, 2008 03:28 AM
Catching a SQLException error digriz60 ASP.NET 1.0 and 1.1 Basics 5 January 14th, 2008 03:14 PM
SQLException no suitable driver zhuchunlai Apache Tomcat 2 November 29th, 2007 10:51 AM
java.sql.SQLException [email protected] SQL Server 2000 1 March 22nd, 2006 08:57 AM
SqlException error akibaMaila VB.NET 2002/2003 Basics 3 August 25th, 2005 09:14 AM





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