找回密码
 立即注册

QQ登录

只需一步,快速开始

langren82
初级会员   /  发表于:2013-4-13 15:30:00
31#
错误信息就是上图 row=1的
回复 使用道具 举报
langren82
初级会员   /  发表于:2013-4-13 18:21:00
32#
用户代码未处理 System.MissingMethodException Message="没有为该对象定义无参数的构造函数。" Source="mscorlib" StackTrace: 在 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) 在 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) 在 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) 在 System.Activator.CreateInstance(Type type, Boolean nonPublic) 在 System.Activator.CreateInstance(Type type) 在 FarPoint.Web.Spread.Model.DefaultSheetDataModel.a(Int32 A_0, Int32 A_1, Boolean A_2, Boolean A_3) 在 FarPoint.Web.Spread.Model.DefaultSheetDataModel.b(Int32 A_0, Int32 A_1, Boolean A_2) 在 FarPoint.Web.Spread.Model.DefaultSheetDataModel.AddRows(Int32 row, Int32 count) 在 FarPoint.Web.Spread.Rows.Add(Int32 index, Int32 count) 在 hscx.hslr2.FpSpread1_ButtonCommand(Object sender, SpreadCommandEventArgs e) 位置 D:\xm\hscx\hscx\hslr2.aspx.cs:行号 60 在 FarPoint.Web.Spread.FpSpread.OnButtonCmd(String cmd, Int32 row, Int32 column) 在 FarPoint.Web.Spread.FpSpread.g(String A_0) 在 FarPoint.Web.Spread.FpSpread.a(Object A_0, EventArgs A_1) 在 System.EventHandler.Invoke(Object sender, EventArgs e) 在 System.Web.UI.Page.OnLoadComplete(EventArgs e) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) InnerException:
回复 使用道具 举报
langren82
初级会员   /  发表于:2013-4-15 09:23:00
33#
我试了 给spread的控件加上 数据源 就会报这个错
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2013-4-15 14:22:00
34#
回复 33楼langren82的帖子

感谢你的问题反馈,能否制作一个重现问题的 Demo 到论坛以供调查?
回复 使用道具 举报
langren82
初级会员   /  发表于:2013-4-15 15:23:00
35#
我已经上传了 上面那个demo 我这里一直报错 没有数据源 就可以增加一行
回复 使用道具 举报
langren82
初级会员   /  发表于:2013-4-15 15:26:00
36#
请加快解决的速度 我这个任务已经拖了很多时间了 谢谢
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2013-4-15 16:16:00
37#
回复 36楼langren82的帖子

你好,
不好意思,没有看到你的 Demo。
上传大小限制为 4MB,可以删除 bin 目录下 dll 后上传。
回复 使用道具 举报
langren82
初级会员   /  发表于:2013-4-15 16:47:00
38#
这个错误 DefaultValue.rar (3.24 MB, 下载次数: 585)
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2013-4-15 17:41:00
39#
回复 38楼langren82的帖子

该问题我已经重现了,正在处理中
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2013-4-16 10:49:00
40#
回复 38楼langren82的帖子

问题原因已经查明,由于使用的是设计器绑定,所以每次 post 到后台的时候会重新绑定数据,造成异常。

建议,不使用设计器绑定,使用后台代码绑定数据。
附件是我的 Demo。由于我没有安装  Microsoft.Jet.OLEDB.12.0 ,所以使用  Microsoft.Jet.OLEDB.4.0 模拟。请参考。

WebApplication133.zip (30.32 KB, 下载次数: 621)
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部