This project is read-only.

SampleData.cs problem

Jun 21, 2011 at 4:06 PM


I get the following message when trying to build the project after setting up the SampleData.cs (pages 44+ in the PDF).

"Cannot implicitly convert type 'MvcMusicStore.Models.Genre' to 'string'.  I've checked and rechecked the tutorial, but can't find anything I've done wrong.  Got to be something, though.

Any ideas?  Thanks!


Jun 23, 2011 at 7:07 AM

I'm looking over the SampleData.cs class and nothing's coming to mind. You copied in the SampleData.cs class from the Assets directory, right?

One idea - can you download the complete project and compare your code with the completed project's code?

Jun 23, 2011 at 6:37 PM

Found it!  Something simple, of course.  I messed up the data type in my Album class.  I must have looked at that line 10 times or more!

Great tutorial! Learning a lot.