This project is read-only.

Store is stopping on storeDB

May 8, 2012 at 10:36 PM
Edited May 8, 2012 at 10:36 PM

I am in the part within the StoreController where I am not modifying the index, browse, and details methods now that the EF for SQL CE is in place and when I run the project, it goes fine until I try to go to "localhost~/Store/". Then it gives me an "arguementexception was unhandled by user code" issue at this code point:

            var genres = storeDB.Genres.ToList();
            return View(genres);
I have also updated the class as such:
public class StoreController : Controller
MusicStoreEntities storeDB = new MusicStoreEntities();

It highlights in yellow all the references to "storeDB", but again, not sure why this is doing this and am hoping some of you can help here? Is much appreciated!

May 8, 2012 at 10:41 PM

I bit more, within the browser address bar, I do see that when I try to go to anything with "localhost~/Store" that it will say "Format of the initialization string does not conform to specifications starting at index 0". Not sure what that means, but is probably something simple I am overlooking. Ideas or fixes please? Thanks much!