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 June 18th, 2006, 11:47 AM
Registered User
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ObjectDataSource control

When trying to connect to an existing database in the example in the book "Beginning ASP.NET 2.0" I keep getting the following error:

An attempt to attach an auto-named database for file C:\Chapter10\ObjectDataSource\App_Data\WroxUnited. mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Can anyone please shed some light on this for me.

The example in the book says to select ConnectionString(Web.Config)
but the only one I can find is WroxUnited(Web.config), but I didn't think this would make any difference

Old August 15th, 2006, 12:09 PM
Registered User
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I see that no one has responded to your post. I am also having the same issue and have not been able to solve it. If you figured it out, please post it in this forum.


Similar Threads
Thread Thread Starter Forum Replies Last Post
ObjectDataSource in UserControl Colonel Angus .NET Framework 2.0 0 April 3rd, 2008 10:14 AM
CH5 ObjectDataSource nabeelalkaff BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 March 8th, 2007 01:19 PM
Error with CH. 10 ObjectDataSource Control in C# dramsey BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 7 February 14th, 2007 11:09 PM
What does ObjectDataSource.Update do? Aaron Edwards ASP.NET 2.0 Basics 1 November 27th, 2006 05:40 PM
Get Information about ObjectDataSource control deokule2003 Visual Studio 2005 0 March 7th, 2006 07:26 AM

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