|
|
hello -
I have followed the tutorial step by step, but these two are null - not reading from sampledata.cs for some reason. these remain null despite initialization in global.asax. can anyone offer a direction?
thank you
Harvey
|
|
Coordinator
Sep 25, 2012 at 3:24 AM
|
Can you delete the database (\App_Data\MvcMusicStore.sdf), set a breakpoint in sampledata.cs Seed method, and see if it's being called?
From: hflaisher
Sent: Monday, September 24, 2012 7:52 PM
To: Jon Galloway
Subject: genres and artists are null - seeding does not seem to work [mvcmusicstore:396756]
From: hflaisher
hello -
I have followed the tutorial step by step, but these two are null - not reading from sampledata.cs for some reason. these remain null despite initialization in global.asax. can anyone offer a direction?
thank you
Harvey
|
|
|
|
Hello jongalloway:
thank you for responding. Yes, I have tried that and it is indeed being executed, but no database. I have also put in the db from the completed MusicStore project and the Genres are not being read from there either. I have checked connection strings, etc on
my proj against the completed MusicStore (which does work) and I cannot find any differences at all.
any other suggestions?
thanks
Harvey
On Mon, Sep 24, 2012 at 11:24 PM, jongalloway <notifications@codeplex.com> wrote:
From: jongalloway
Can you delete the database (\App_Data\MvcMusicStore.sdf), set a breakpoint in sampledata.cs Seed method, and see if it's being called?
From: hflaisher
Sent: Monday, September 24, 2012 7:52 PM
To: Jon Galloway
Subject: genres and artists are null - seeding does not seem to work [mvcmusicstore:396756]
From: hflaisher
hello -
I have followed the tutorial step by step, but these two are null - not reading from sampledata.cs for some reason. these remain null despite initialization in global.asax. can anyone offer a direction?
thank you
Harvey
|
|
|
|
I have same problem with you, but i fixed it, My application could read data from sampleData.cs.
You have to install SQL Server Compact Edition from install web component, then use connection string in the MvcMusicStore tutorial.
After that, you can run your application smoothly.
Regards!
|
|
|
|
Thank you very much.
I did install CE and I also used the identical conn string and nothing would work. I eventually just copied the complete db from the completed MusicStore app and used it instead.
regards
Harvey
On Fri, Oct 12, 2012 at 10:04 AM, hungtv01116 <notifications@codeplex.com> wrote:
From: hungtv01116
I have same problem with you, but i fixed it, My application could read data from sampleData.cs.
You have to install SQL Server Compact Edition from install web component, then use connection string in the MvcMusicStore tutorial.
After that, you can run your application smoothly.
Regards!
|
|