Thread: Chapter 11
View Single Post
  #6 (permalink)  
Old June 2nd, 2008, 04:09 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Judging by the error message, it seems that you didn't create the database inside the App_Data folder, as instructed by the book.

Make sure you add it to App_Data through the Solution Explorer, or drag an existing MDF file from Windows Explorer into the App_Data folder (that you need to create using the Solution Explorer).

How are you dragging the file? It should create a copy when you drag it from the Resources folder into VWD, so you shouldn't get this error message. Or are you maybe dragging the file directly from the ZIP file without extracting the files first as explained at the beginning of the book?

Hope this helps,


Imar Spaanjaars
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.