title: 'System.ArgumentNullException' while using Stimulsoft
body: <p>I'm trying to use Stimulsoft Reports 2014.3 in my MVC 5.2 app. I get the following exception when I try to use <code>@Html.Stimulsoft().StiMvcViewer</code>.</p>
  <blockquote>
  <p>An exception of type 'System.ArgumentNullException' occurred in mscorlib.dll</p>
  <p>Value cannot be null. Parameter name: key</p>
  </blockquote>
  <p>I can use <code>@Html.Stimulsoft().StiMvcViewerFx</code> just fine. I have tried various changes in web.config to get ride of this exception, but they were all useless. I've also tried Debug -&gt; Exceptions, and checking both boxes for Common Language Runtime Exceptions, but there wasn't any other exception.</p>
  <p>Adding <code>@Html.Stimulsoft().RenderMvcViewerScripts()</code> wasn't useful neither.</p>
  <p>This is the view:</p>
  <pre><code>@using Stimulsoft.Report.Mvc
  @using System.Web.UI.WebControls
  @model Models.GenericReportViewModel
  
  &lt;div&gt;
      @Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()
  {
      ActionGetReportSnapshot = string.Concat(&quot;LoadReport?Id=&quot;, Model.ReportName),
      Width = Unit.Point(500),
      Theme = StiTheme.Default,
      ActionExportReport = &quot;ExportReport&quot;,
      Height = Unit.Point(400),
      Controller = &quot;Report&quot;,
  })
  &lt;/div&gt;
  </code></pre>
  <p>This is the web.config:</p>
  <pre><code>  &lt;system.web&gt;
        &lt;globalization uiCulture=&quot;fa-IR&quot; culture=&quot;fa-IR&quot;&gt;&lt;/globalization&gt;
      &lt;compilation debug=&quot;true&quot; targetFramework=&quot;4.5&quot;&gt;
        &lt;assemblies&gt;
          &lt;add assembly=&quot;System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; /&gt;
          &lt;add assembly=&quot;System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; /&gt;
          &lt;add assembly=&quot;System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; /&gt;
          &lt;add assembly=&quot;System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; /&gt;
          &lt;add assembly=&quot;System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; /&gt;
          &lt;add assembly=&quot;Stimulsoft.Base, Version=2014.3.0.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a&quot; /&gt;
          &lt;add assembly=&quot;Stimulsoft.Report, Version=2014.3.0.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a&quot; /&gt;
          &lt;add assembly=&quot;Stimulsoft.Report.Mvc, Version=2014.3.0.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a&quot; /&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
      &lt;httpRuntime targetFramework=&quot;4.5&quot; /&gt;
      &lt;pages&gt;
        &lt;namespaces&gt;
          &lt;add namespace=&quot;Kendo.Mvc.UI&quot; /&gt;
          &lt;add namespace=&quot;System.Web.Helpers&quot; /&gt;
          &lt;!--&lt;add namespace=&quot;System.Web.Abstractions&quot; /&gt;--&gt;
          &lt;add namespace=&quot;Stimulsoft.Base&quot; /&gt;
          &lt;add namespace=&quot;Stimulsoft.Report&quot; /&gt;
          &lt;add namespace=&quot;Stimulsoft.Report.Mvc&quot; /&gt;
        &lt;/namespaces&gt;
      &lt;/pages&gt;
    &lt;/system.web&gt;
  </code></pre>
  <p>I should note that the Flash version works as below and it doesn't have any problem:</p>
  <pre><code>@using Stimulsoft.Report.Mvc
  @using System.Web.UI.WebControls
  @model Models.GenericReportViewModel
  
  &lt;div&gt;
      @Html.Stimulsoft().RenderMvcViewerFxScripts()
      @Html.Stimulsoft().StiMvcViewerFx(new StiMvcViewerFxOptions()
  {
      ActionGetReportSnapshot = string.Concat(&quot;LoadReport?Id=&quot;, Model.ReportName),
      Width = Unit.Point(500),
      Theme = StiMvcViewerFxOptions.Themes.Blue,
      ActionExportReport = &quot;ExportReport&quot;,
      BackgroundColor = System.Drawing.Color.Silver,
      ActionGetLocalization = &quot;GetLocal&quot;,
      Height = Unit.Point(400),
      Controller = &quot;Report&quot;,
  })
  &lt;/div&gt;
  </code></pre>
  <p>It's been <a href="https://stackoverflow.com/a/30778740/3967440">suggested</a> to add the following <code>bindingRedirect</code> to <code>web.config</code></p>
  <pre><code>  &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name=&quot;System.Web.Mvc&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; /&gt;
      &lt;bindingRedirect oldVersion=&quot;1.0.0.0-2.0.0.0&quot; newVersion=&quot;3.0.0.1&quot; /&gt;
    &lt;/dependentAssembly&gt;
  </code></pre>
  <p>Adding this will suppress the exception and prevents the page from rendering, probably because I'm not using MVC 3! But it should have something to do with it.</p>
  <p>I also have this redirect as <code>oldVersion=&quot;0.0.0.0-5.2.3.0&quot; newVersion=&quot;5.2.3.0&quot;</code>, but I'll get the exception with this one.</p>