<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>mvcmusicstore Discussions Rss Feed</title><link>http://mvcmusicstore.codeplex.com/Thread/List.aspx</link><description>mvcmusicstore Discussions Rss Description</description><item><title>New Post: Online demo</title><link>http://mvcmusicstore.codeplex.com/discussions/437470</link><description>&lt;div style="line-height: normal;"&gt;please check if you have all dependence installed for MVC 3. &lt;br /&gt;
I am working on mvcmusicstore, when i finish i will upload it ! &lt;br /&gt;
&lt;/div&gt;</description><author>filiq</author><pubDate>Thu, 16 May 2013 11:58:34 GMT</pubDate><guid isPermaLink="false">New Post: Online demo 20130516115834A</guid></item><item><title>New Post: Database Problem....</title><link>http://mvcmusicstore.codeplex.com/discussions/440861</link><description>&lt;div style="line-height: normal;"&gt;data file in database?  please explain the problem better.&lt;br /&gt;
&lt;/div&gt;</description><author>filiq</author><pubDate>Thu, 16 May 2013 11:50:36 GMT</pubDate><guid isPermaLink="false">New Post: Database Problem.... 20130516115036A</guid></item><item><title>New Post: Error message in Part 8</title><link>http://mvcmusicstore.codeplex.com/discussions/443477</link><description>&lt;div style="line-height: normal;"&gt;I'm trying to get through part 8 of the MvcMusicStore.&lt;br /&gt;
&lt;br /&gt;
I've done all the required coding but when I click the 'Add To Cart' button, I get an error message:&lt;br /&gt;
&lt;br /&gt;
NullReferenceException was unhandled by user code&lt;br /&gt;
Object reference not set to an instance of an object.&lt;br /&gt;
&lt;br /&gt;
In the debugger it's saying the error is in index.cshtml (views\shoppingCart) line 53, col 6 ch 6.&lt;br /&gt;
&lt;br /&gt;
Seems to be having issues with the &amp;quot;@foreach (var item in Model.CartItems)&lt;br /&gt;
&lt;br /&gt;
Wondering if anyone can shed anylight on the situation.. have had a look at the completed code and it's exactly the same as what's in there.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
P.S. Error isn't in Part 10.. is in fact PART 8!!&lt;br /&gt;
&lt;/div&gt;</description><author>KenBool1982</author><pubDate>Mon, 13 May 2013 14:10:50 GMT</pubDate><guid isPermaLink="false">New Post: Error message in Part 8 20130513021050P</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;Hey guys, I'm experiencing a different error than everyone else. I have a feeling it has something to do with my version of SQL server installed.  It basically says the following:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;System.Data.Entity.Edm.EdmEntityType: : EntityType 'Album' has no key defined. Define the key for this EntityType.&lt;/strong&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;System.Data.Entity.Edm.EdmEntityType: EntityType: EntitySet 'Albums' is based on type 'Album' that has no keys defined.&lt;/strong&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
So did I miss a step in the tutorial somewhere?&lt;br /&gt;
&lt;br /&gt;
I already tried all the other suggestions. It does seem to generate the MusicStoreDBContext connection string when trying to create the controller, even when throwing the error. So I delete the connection string and try again and get the same error as above.  Any ideas?&lt;br /&gt;
&lt;/div&gt;</description><author>chickenlips</author><pubDate>Thu, 09 May 2013 04:15:13 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130509041513A</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;Unsupported Context Type Error when trying to add StoreManagerController. any help?&lt;br /&gt;
&lt;/div&gt;</description><author>ankit35</author><pubDate>Tue, 07 May 2013 12:22:05 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130507122205P</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;I had a very similar issue while trying to create the StoreManagerController. The error I got was: &amp;quot;Unable to retrieve metadata for model object MvcMusicStore.Models.Album. Object reference not set to an instance of an object.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
What I noticed is that the following line in the web.config files wasn't properly resolved:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;entityFramework&amp;quot; type=&amp;quot;System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;quot; requirePermission=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So I went ahead and re-installed the EntityFramework from the Package Manager Console by typing Install-Package EntityFramework, and that solved the problem.&lt;br /&gt;
&lt;br /&gt;
Note: I was following the Music Store tutorial with MVC 4.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;/div&gt;</description><author>payini</author><pubDate>Mon, 06 May 2013 21:52:25 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130506095225P</guid></item><item><title>New Post: Site.css not taking effect in tutorial</title><link>http://mvcmusicstore.codeplex.com/discussions/392388</link><description>&lt;div style="line-height: normal;"&gt;thanks for the post ! solved my mystery. &lt;br /&gt;
&lt;/div&gt;</description><author>NomanQ</author><pubDate>Fri, 03 May 2013 01:24:03 GMT</pubDate><guid isPermaLink="false">New Post: Site.css not taking effect in tutorial 20130503012403A</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;its work for me.. &lt;br /&gt;
just delete &amp;lt;add name=&amp;quot;MusicStoreEntities&amp;quot; connectionString=&amp;quot;Data Source=|DataDirectory|MvcMusicStore.sdf&amp;quot; providerName=&amp;quot;System.Data.SqlServerCe.4.0&amp;quot; /&amp;gt; or make this become a comment, and you can make StoreManagerController.&lt;br /&gt;
&lt;/div&gt;</description><author>noviankristianto</author><pubDate>Wed, 01 May 2013 01:42:40 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130501014240A</guid></item><item><title>New Post: error @ part 10`</title><link>http://mvcmusicstore.codeplex.com/discussions/442060</link><description>&lt;div style="line-height: normal;"&gt;i got an error at part 10&lt;br /&gt;
&lt;br /&gt;
var cart = new ShoppingCart();&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        cart.ShoppingCartId = cart.__GetCartId__(context);
        return cart;

&lt;/code&gt;&lt;/pre&gt;

&lt;strong&gt;GetCartId&lt;/strong&gt; is error, how can i solve this error???&lt;br /&gt;
thanks&lt;br /&gt;
&lt;/div&gt;</description><author>noviankristianto</author><pubDate>Tue, 30 Apr 2013 10:38:56 GMT</pubDate><guid isPermaLink="false">New Post: error @ part 10` 20130430103856A</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;&lt;strong&gt;bjthomps wrote:&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;
OK - I am not sure why this is, but I found a workaround for this issue and I thought I would post it for you mnlia in case you are still having trouble. Go to your web.config file and locate the following line of code that you added in one of the earlier tutorial steps:&amp;nbsp;  &amp;lt;add name=&amp;quot;MusicStoreEntities&amp;quot; connectionString=&amp;quot;Data Source=|DataDirectory|MvcMusicStore.sdf&amp;quot; providerName=&amp;quot;System.Data.SqlServerCe.4.0&amp;quot;  /&amp;gt;&amp;nbsp;  Delete it or comment it out and build the project&amp;nbsp;- then create the StoreManagerController and it should work without issue.&amp;nbsp; Once the controller and all the associated files have been created, then you can add your connection string back to the web.config file.&amp;nbsp; I am not sure why this connection string existing is causing this error, but this will allow you to finish the tutorial. &amp;nbsp;&lt;br /&gt;
&lt;/blockquote&gt;
Yes! It's works!!!&lt;br /&gt;
&lt;/div&gt;</description><author>artmakarenko</author><pubDate>Fri, 26 Apr 2013 09:09:18 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130426090918A</guid></item><item><title>New Post: The connection name 'DefaultConnection' was not found in the applications configuration or the connection string is empty. </title><link>http://mvcmusicstore.codeplex.com/discussions/405449</link><description>&lt;div style="line-height: normal;"&gt;Hi.&lt;br /&gt;
I added the new 'add' tag but I'm having exactly the same issue. What do I need to do to fix this? Thank you.&lt;br /&gt;
&lt;/div&gt;</description><author>PacoKiLi</author><pubDate>Thu, 25 Apr 2013 22:04:03 GMT</pubDate><guid isPermaLink="false">New Post: The connection name 'DefaultConnection' was not found in the applications configuration or the connection string is empty.  20130425100403P</guid></item><item><title>New Post: JS error : ./ShoppingCart/AddToCart/</title><link>http://mvcmusicstore.codeplex.com/discussions/441280</link><description>&lt;div style="line-height: normal;"&gt;Dears,&lt;br /&gt;
&lt;br /&gt;
I followed all the tutorial. However, when I try to add to cart; i get the following error :&lt;br /&gt;
&lt;blockquote&gt;
Unhandled exception at line 48, column 5 in http://localhost:xxxxx/ShoppingCart/AddToCart/x&lt;br /&gt;
&lt;/blockquote&gt;
0x800a1391 - Erreur d’exécution JavaScript: « $ » est indéfini&lt;br /&gt;
&lt;/div&gt;</description><author>Mouwali12</author><pubDate>Tue, 23 Apr 2013 11:55:41 GMT</pubDate><guid isPermaLink="false">New Post: JS error : ./ShoppingCart/AddToCart/ 20130423115541A</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;Doesn't work for me unfortunately. After commenting out the DB Connection string, I receive the following message:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Could not load type 'MyMusicStore.Models.Album' from assembly [...]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Anyone else having this issue?&lt;br /&gt;
&lt;br /&gt;
Also does anybody know the reasons for these two problems?&lt;br /&gt;
&lt;br /&gt;
I'll just try continuing without the scaffolding...&lt;br /&gt;
&lt;/div&gt;</description><author>FelixM</author><pubDate>Sat, 20 Apr 2013 23:28:05 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130420112805P</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;Funciona mesmo!!!&lt;br /&gt;
&lt;br /&gt;
Really works!!!&lt;br /&gt;
&lt;/div&gt;</description><author>seuparada</author><pubDate>Fri, 19 Apr 2013 13:35:26 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130419013526P</guid></item><item><title>New Post: Database Problem....</title><link>http://mvcmusicstore.codeplex.com/discussions/440861</link><description>&lt;div style="line-height: normal;"&gt;In MvcMusicStore-Assets folder,data is another folder where data file are present.but i can not attach that data file in my database.That's why i can not use edit albums in admin section.&lt;br /&gt;
How can I solve this?&lt;br /&gt;
&lt;/div&gt;</description><author>shan8836</author><pubDate>Fri, 19 Apr 2013 06:54:51 GMT</pubDate><guid isPermaLink="false">New Post: Database Problem.... 20130419065451A</guid></item><item><title>New Post: HTTPPost Variations</title><link>http://mvcmusicstore.codeplex.com/discussions/434006</link><description>&lt;div style="line-height: normal;"&gt;This due to how Method Overload works and how it is evaluated by de CLR.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public ActionResult Delete(Model id);

[HttpPost]
public ActionResult Delete(Model id);&lt;/code&gt;&lt;/pre&gt;

The above is what you want to avoid. The basic rule is that when overloading, the implicit agreement is that the signatures of both need to be different from each other. For instance, by having different arguments: &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public ActionResult Delete();

[HttpPost]
public ActionResult Delete(Model id);&lt;/code&gt;&lt;/pre&gt;

Though, chances are that your functionality demands the same arguments. The workaround is to rename one of the methods, and annotate a custom action name. So in this case a POST request which is fired at &lt;em&gt;app/controller/delete/&lt;/em&gt; is actually properly interpreted by the CLR. ASP Scaffolding takes that into account and automatically appends an actionname annotation.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;[HttpPost, ActionName(&amp;quot;Delete&amp;quot;)]
public ActionResult DeleteConfirmed(Model id)&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>raspunkle</author><pubDate>Sat, 30 Mar 2013 00:10:29 GMT</pubDate><guid isPermaLink="false">New Post: HTTPPost Variations 20130330121029A</guid></item><item><title>New Post: Online demo</title><link>http://mvcmusicstore.codeplex.com/discussions/437470</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
This context seems like a great use case to learn modern Web programming. &lt;br /&gt;
&lt;br /&gt;
I'm a teacher and I'd like to create a PHP version of it, to show students the differences in implementation and similarities in concepts between the two environments.&lt;br /&gt;
&lt;br /&gt;
However, I can't manage to open the completed Visual Studio solution for version 3.0b, despite having VS 2010 SP1 and ASP.NET MVC 4 installed. It may be a language problem (I'm french). I know I could follow the entire tutorial : I'll do it asap.&lt;br /&gt;
&lt;br /&gt;
Is there a demo version of MVC Music Store online somewhere, so that I can at least see it in action ?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for any answer. Regards,&lt;br /&gt;
  Baptiste&lt;br /&gt;
&lt;/div&gt;</description><author>bpesquet</author><pubDate>Thu, 21 Mar 2013 10:41:54 GMT</pubDate><guid isPermaLink="false">New Post: Online demo 20130321104154A</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;works&lt;br /&gt;
&lt;/div&gt;</description><author>chundunsing</author><pubDate>Sun, 10 Mar 2013 09:33:39 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130310093339A</guid></item><item><title>New Post: Getting error when trying to add StoreManagerController</title><link>http://mvcmusicstore.codeplex.com/discussions/397409</link><description>&lt;div style="line-height: normal;"&gt;&lt;a href="mailto:@bjthomps.

Thanks," rel="nofollow"&gt;@bjthomps.

Thanks,&lt;/a&gt; that did it!&lt;br /&gt;
&lt;br /&gt;
/K&lt;br /&gt;
&lt;/div&gt;</description><author>kabe5965</author><pubDate>Thu, 07 Mar 2013 07:45:59 GMT</pubDate><guid isPermaLink="false">New Post: Getting error when trying to add StoreManagerController 20130307074559A</guid></item><item><title>New Post: "The provider did not return a ProviderManifestToken string"</title><link>http://mvcmusicstore.codeplex.com/discussions/435561</link><description>&lt;div style="line-height: normal;"&gt;I am using the below connection string and when I run MvcMusicStore  &amp;lt;add name=&amp;quot;MvcMusicStoreEntities&amp;quot;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;  connectionString=&amp;quot;Provider=SQLServer.Data.Client;Server=L-156026047;Initial Catalog=MvcMusicStore;Integrated Security=True&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&amp;lt;/connectionStrings&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I am using SQL Server 2008 d&lt;br /&gt;
&lt;br /&gt;
I get the below error at&lt;br /&gt;
 &lt;br /&gt;
 var genres = storeDB.Genres.ToList&amp;lt;Genre&amp;gt;();&lt;br /&gt;
Please help.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The provider did not return a ProviderManifestToken string&amp;quot;&lt;br /&gt;
&lt;/div&gt;</description><author>ershyams</author><pubDate>Wed, 06 Mar 2013 11:33:37 GMT</pubDate><guid isPermaLink="false">New Post: "The provider did not return a ProviderManifestToken string" 20130306113337A</guid></item></channel></rss>