0

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

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

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

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

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

4

1 回答 1

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>
于 2015-04-24T12:39:27.633 回答