<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET MVC Storefront Starter Kit</title><link>http://forums.asp.net/1165.aspx</link><description>This forum is for any and all questions pertaining to the ASP.NET MVC Storefront Starter Kit. The Storefront  is a sample ASP.NET MVC Commerce application which was developed using Test-driven Development, Inversion of Control (IoC), and Dependency Injection.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>RenderPartial Problem</title><link>http://forums.asp.net/thread/2963704.aspx</link><pubDate>Tue, 24 Feb 2009 18:41:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2963704</guid><dc:creator>TobiR</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2963704.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1165&amp;PostID=2963704</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;When clicking on a catalog item the following code RenderPartial&amp;nbsp; in ViewExtentions.cs is crashing out with {&amp;quot;Parameter count mismatch.&amp;quot;} I have updated to RC of MVC and MVC futures and it seems to all compile ok.&lt;/p&gt;
&lt;p&gt;Any help, much appreciated.&lt;/p&gt;
&lt;p&gt;&lt;span class="kwd"&gt;public static void&lt;/span&gt; RenderPartial(&lt;span class="kwd"&gt;this&lt;/span&gt; HtmlHelper helper, &lt;span class="kwd"&gt;string&lt;/span&gt; partialName, &lt;span class="kwd"&gt;object&lt;/span&gt; model, &lt;span class="kwd"&gt;object&lt;/span&gt; viewData)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewDataDictionary viewDictionary = &lt;span class="kwd"&gt;new&lt;/span&gt; ViewDataDictionary();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Reflection.PropertyInfo[] props = viewData.GetType().GetProperties();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwd"&gt;foreach&lt;/span&gt; (PropertyInfo pi &lt;span class="kwd"&gt;in&lt;/span&gt; props)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwd"&gt;if&lt;/span&gt; (!viewDictionary.ContainsKey(pi.Name))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; viewDictionary.Add(pi.Name, pi.GetValue(viewData, &lt;span class="kwd"&gt;null&lt;/span&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; helper.RenderPartial(partialName, model, viewDictionary);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Toby.&lt;/p&gt;</description></item></channel></rss>