I am stuck on part 4 of the tutorial when running the page, I am getting a problem with the line var genres = storeDb.Genres.ToList(); and when the page runs and I browse to /store URL I get the error back in visual studio of "Invalid value for key 'attachdbfilename'
Any ideas on what I am doing wrong - I followed the tutorial word for word?
This is from my webconfig? I have installed SQL Express on my local c: drive
<add name="MusicStoreEntities" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI; AttachDBFilename=|Data Directory|\MvcMusicStore.mdf; User Instance=true" providerName="System.Data.SqlClient"
I also attached the .mdf file from the download from codeplex into the APP_DATA folder in visual studio by right clicking and ADD> New item etc as per the tutorial
Any ideas on what I am doing wrong? I am a newbie to .NET and MVC