Wrox Programmer Forums
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 March 9th, 2004, 12:05 PM
Registered User
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to set up the sample site?

The database thePhile is located on my local machine. Based on the page ASP.NET Website Programming Code Download C# Edition, I need to change the name of database server in the file Web.config. What should I change the following code to?
sqlConnectionString="data source=CHARUL\NetSDK;user id=sa;password="

Also when I rebuilt the Solution in VS.NET, I got many error messages which say "The type or namaspace 'xxxxx' does not exist in the class or namespace 'wrox.xxxxx'".

Any help will be appreciated. Thanks.
Old March 13th, 2004, 11:53 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts

The connection string is not in web.config. The only thing in web.config is the location of all of the other config files (one for each module). The .config files in the config subdir have your connection string. For most of us, we'll put the same connection string in every config file. The actual string depends on your database configuration.

If you want to use Windows authorization to access the DB you don't need a username and password. This is a typical connection string for use with Windows auth:
"Data Source=(local);Initial Catalog=ThePhile;Integrated Security=SSPI"

This will help you with connection strings:

Your other problem about the namespace is probably caused by installing the project into your IIS root folder instead of using a virtual directory named "ThePhile".

Similar Threads
Thread Thread Starter Forum Replies Last Post
XPath: set operation with a disjoint node set rich_unger XSLT 7 May 6th, 2008 09:24 AM
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
Remote Site Set Up Anne Harrington Dreamweaver (all versions) 1 April 7th, 2005 04:25 PM
how do i change the site icon on a geocitiies site uprocker2 HTML Code Clinic 2 March 4th, 2005 07:20 AM
Set Up Sample Project sillygiu@hotmail.com BOOK: ASP.NET Website Programming Problem-Design-Solution 1 July 28th, 2004 09:44 PM

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