title: Unable to retrieve metadata for 'MVCMusicStore.Models.Album
body: <p>In section 5 of the ASP>NET MVC Music Store example, "Creating the StoreManagerController," when I click "Add" I get the error,</p>
  
  <blockquote>
    <p>There was an error running the selected code generator:
    'Unable to retrieve metadata for 'MVCMusicStore.Models.Album.'</p>
  </blockquote>
  
  <p>The popular solution is to comment out the connection string in Web.config. This did not work for me. After trying many things I decided to add the code manually, by taking it from the completed code that's included with the example. When I do that I receive the error,</p>
  
  <blockquote>
    <p>Compiler Error Message: CS0234: The type or namespace name 'Album' does not exist in the namespace 'MvcMusicStore.Models' (are you missing an assembly reference?)</p>
  </blockquote>
  
  <p>and on line 31 I see the error,</p>
  
  <blockquote>
    <p>public class _Page_Views_StoreManager_Index_cshtml : System.Web.Mvc.WebViewPage&lt;IEnumerable&lt;MvcMusicStore.Models.Album>> </p>
  </blockquote>
  
  <p>Album is defined in the models folder. I have used webform development many times and am trying to add MVC to my repertoire. It seems to me "Album' is not registered, but I don't even know if that's appropriate lingo for MVC. What's the problem? I'm running this example in Visual Studio 2017.</p>