Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old April 4th, 2004, 04:21 PM
Authorized User
 
Join Date: Apr 2004
Location: Cannon Beach, OR, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Difficulty getting thePhile up and running

I think this is a pretty basic question, but it's a stumbling block for me, and I would really appreciate some advice.

Can anyone be more specific about what to change in the config files? Step 5 of index.htm …

[begin quote]
You also need to change the name of database server in the following files listed below:
* Web.config
* All the config files residing in the C:\wrox\ThePhile\Config\ folder.
[end quote]

As an example, my unmodified Accounts.Config in my c:\wrox\ThePhile\Config is [my database is already set to ThePhile?]

[begin quote]
<?xml version="1.0"?>
<ModuleSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ConnectionString>server=CHARUL\NetSDK;database=Th ePhile;uid=sa;pwd=;</ConnectionString>
</ModuleSettings>
[end quote]

When I build, reboot, and open http://localhots/thephile I get the error "SQL server does not exist or access denied".

I am running Win XP Pro SP1 with SQL Server 2000 (the databse restored OK) and VS .Net Professional 2002.

Thanks.



-Ted
__________________
-Ted
  #2 (permalink)  
Old April 5th, 2004, 04:07 AM
Authorized User
 
Join Date: Nov 2003
Location: Caterham, Surrey, United Kingdom.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What's the name of your SQL Server?
server=CHARUL\NetSDK indicates a named instance NetSDK on machine CHARUL. Unless you only installed MSDE as part of the Visual Studio Setup then this is probably wrong - you only need named instances when you want to run several versons of SQL Server concurrently on the same PC. If you installed SLQ Server (e.g. standard) with default values, then all you need is server=(local); or if it's on another pc then the name of that PC.

brian
  #3 (permalink)  
Old April 5th, 2004, 05:08 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

H,

As brian replied above, if your MSDE is installed on your development itself. You just need to change "CHARUL\NETSDK" to "server=(local)". Alternatively you can also define server name as "MACHINE NAME\INSTANCE NAME" syntax. The second approach is more usefull where you database is installed somewhere else in the network, but can also be used for standalone machine.

Charul Shukla
  #4 (permalink)  
Old April 5th, 2004, 12:32 PM
Authorized User
 
Join Date: Apr 2004
Location: Cannon Beach, OR, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks. I have SQL Server 2000, not MSDE. (Well, I have MSDE on another machine, and I'll try it both ways.)

I replaced CHARUL/NetSDK with (local) and got past my error. I will also try the second approach; we have a workgroup with four machines here.

Thanks for your help. This looks like a great book, and I think I've gotten over the hump and can get into the fun stuff.


-Ted


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty with $_SESSION mall9@hotmail.com Beginning PHP 11 March 11th, 2006 05:41 PM
ASCII conversion loop difficulty crmpicco Excel VBA 2 May 3rd, 2005 01:41 PM
Error while running/executing project thePhile seetha_l BOOK: ASP.NET Website Programming Problem-Design-Solution 0 June 11th, 2004 11:31 AM
The Security problem in running ThePhile web APP crystallac BOOK: ASP.NET Website Programming Problem-Design-Solution 3 July 28th, 2003 01:22 AM
Problems running ThePhile web app kiekar BOOK: ASP.NET Website Programming Problem-Design-Solution 5 July 24th, 2003 07:39 PM





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