Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 6th, 2008, 04:04 AM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error connecting to the databases

Hi.

I'm trying to install the appointment system and I've done what I'm supposed to do (page 349 - setting up the appointment booking system). I'm running XP. The aspnet process has read/write/list etc. on the app_data folder. I've tried a number of things trying to connect. I've also attached the file in sqlmanagement studio and copied the string into web.config but that does not work either..
"Data Source=.\SQLEXPRESS;AttachDbFilename=D:\Utvikling\ WebRoot\AppointmentBooking\App_Data\ASPNETDB.MDF;I ntegrated Security=True;Connect Timeout=30;User Instance=True"

The persistent problem I have is that is that I'm getting the error:
"An attempt to attach an auto-named database for file D:\Utvikling\WebRoot\AppointmentBooking\App_Data\a spnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. "

I also get the same error message when trying to use the other applications.... And yes, I'm quite new to .net...

Thanx in advance

Morten

 
Old February 6th, 2008, 05:02 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

What happens if you create a brand new web site, add a <asp:Login> control to the Default.aspx page, run it by pressing Ctrl+F5 in VWD and try to log in?

When you do that, you should get an ASPNETDB database.

That at least confirms SQL Server is set up correctly.

Also, try detaching the database again in SQL Server.

Finally, is D a disk drive local to your machine?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
error on connecting to sql server angelboy C# 2005 9 March 29th, 2007 07:56 AM
Error connecting to SQL Views lucylee Visual Studio 2005 0 November 27th, 2006 11:19 AM
Error in Connecting to Oracle vikasagarwal1984 ASP.NET 1.0 and 1.1 Basics 1 October 1st, 2006 01:03 PM
Error connecting to Access RDEdwards Classic ASP Databases 6 November 5th, 2004 10:48 AM





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