在MVC 4应用程序中集成stimulsoft的问题 [英] Problem integrating stimulsoft in MVC 4 application

查看:95
本文介绍了在MVC 4应用程序中集成stimulsoft的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



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

*****************

索引已经过了范围。必须是非负数且小于集合的大小。

参数名称:index

描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。



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

参数名称:index



来源错误:

第25行:

第26行:

第27行:@ Html.Stimulsoft()。StiMvcViewer(新的StiMvcViewerOptions(){

第28行:行动=

第29行:{



***************** ****************

解决方案

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

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


I'm trying to integrate stimulsoft designer in my web application (MVC4, Razor 2 and Entity Framework 4) but I have encountred some problems.

I have integrated the dlls and the assemblies, but I have this error :
*****************
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:
Line 25:
Line 26:
Line 27: @Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {
Line 28: Actions =
Line 29: {

*********************************

解决方案

The problem was resolved by making following changes in the Web.Config file:

<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>


这篇关于在MVC 4应用程序中集成stimulsoft的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆