【问题标题】:Integrating stimulsoft to MVC4 application将 stimulsoft 集成到 MVC4 应用程序
【发布时间】:2015-04-24 20:39:27
【问题描述】:

我正在尝试将 stimulsoft 设计器集成到我的 Web 应用程序(MVC4、Razor 2 和 Entity Framework 4)中,但遇到了一些问题。

我已经集成了 dll 和程序集,但是我有这个错误:

索引超出范围。必须是非负数且小于集合的大小。 参数名称:索引 说明:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.ArgumentOutOfRangeException:索引超出范围。必须是非负数且小于集合的大小。 参数名称:索引

源错误:@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {

【问题讨论】:

    标签: asp.net-mvc asp.net-mvc-4 razor stimulsoft


    【解决方案1】:

    通过在 Web.Config 文件中进行以下更改解决了该问题:

    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="2.0.0.0" newVersion="4.0.0.0"/>
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-27
      • 2012-04-24
      • 2017-12-25
      • 2023-03-18
      • 2012-02-04
      相关资源
      最近更新 更多