This project is read-only.

'SqlException was unhandled by user code' error (pp 44-48, PDF tutorial)

Jun 26, 2012 at 8:35 PM



I am making my way through the Music Store tutorial.  I am now in pages 44-48, trying to link the sample database to the MVC code.  When I run the code and browse to localhost../Store, I get this message:


SqlException was unhandled by user code

"The file "\\....\\my drive \ MvcMusicStore\App_Data\MvcMusicStore2.mdf" is on a network path that is not supported for database files.
CREATE DATABASE failed. Some file names listed could not be created. Check related errors."

I don't see any other errors.


I tried to follow the tutorial closely, although I did have to install EntityFramework using the Project Manager Console (and install PowerShell).  I am using Windows XP and Visual Studio 2010 Premium.  My machine has MS SQL 2008 and SQL Express.


Any ideas? Thanks, Jason

(I tried to create a database as described in another thread here, but I got a permissions error!)