1
Vote

Part 5 - Edit Forms Using Scaffolding

description

The first stop in the Part of the tutorial is to create a new controller named StoreManagerController with the following options:

Template:
Controller with read/write actions and views, using Entity Framework

Model Class:
Album (MvcMusicStore.Models)

Data Context Class:
MusicStoreEntities (MvcMusicStore.Model)

I have followed the tutorial step by step and have not run into any errors except when I try and create this Controller.

The error that I am getting is as follows:
Image

Any help with this would be great as I am really trying to learn as much as I can with this tutorial and can't seem to get past this part.

comments

MamtaSingh wrote Jun 1, 2016 at 10:32 AM

I am facing the same problem, so pls guide us.

Huntersrk wrote Mar 8 at 2:10 PM

I am facing the exact problem, so please help.

Huntersrk wrote Mar 8 at 2:37 PM

I am also a problem during addition of StoreManagerController. After i Set the options for the Add Controller dialog as in pdf on pg.55 and click on ADD i receive the following error..

Error Popup:

Unable to retrieve Metadata for 'MVCMusicStore.Models.Album'. Using the same DbCompiledModel to create contexts against different types of database servers is not supported. Instead, create a separate DbCompiledModel for each type of server being used.