Chapter 5 ERROR : Add StoreManagerController

Jan 28, 2013 at 7:15 PM
Edited Jan 28, 2013 at 7:31 PM

Solved it by an solution deliverd here in the forum: search for Storemanager and you find the solution.

 

That's weird????

 

We I press add to add the StoreManagerController I get this Error:

 

"Unable to retrieve metadata fore 'MvcMusicStore.Models.Album'. Using the same DbCompiledModel to create contexts against different types of database servers is not supported. Instead, create a seperate DbCompiledModel for each type of server being used."

What the hell is this??? ;(

HELP HELP HELP

 

Feb 4, 2013 at 6:16 AM
Hello mducrocq68

Make the following change in config.web

old:
<add name="MusicStoreEntities" connectionString="Data Source=|DataDirectory|MvcMusicStore.sdf" providerName="System.Data.SqlServerCe.4.0"/>

new:
<add name="MusicStoreEntities" connectionString="Data Source=DBInstanceName;Initial Catalog=MvcMusicStore;Integrated Security=True" providerName="System.Data.SqlClient" />

Regards

risi40
Feb 4, 2013 at 2:32 PM
Hello Risi40,

Noop does not work, I already solved it as I mentioned in the header of my question. ;)

"Solved it by an solution deliverd here in the forum: search for Storemanager and you find the solution."

Regards,

mducrocq68