在启动 K2 表单(使用调用 WCF 服务的 K2 SmartObjects)时,我偶尔会收到此错误(大约 2 小时前一直发生,但现在我没有收到错误)。当我不断收到错误时,它似乎处于不同的功能
http://tempuri.org/:GetAccountDetailsForWorkflowResult http://tempuri.org/:GetNewAccountFormInitializationDataResult
InnerException 消息始终相同:“ValueType 'System.Int32' 不能为空。”
Error: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:GetAccountDetailsForWorkflowResult. The InnerException message was 'ValueType 'System.Int32' cannot be null.'. Please see InnerException for more details.
为什么我收到此错误,为什么现在当我提出相同的工作流程时,我不再收到错误?此外,我们在 2 个测试环境中测试了相同的工作流程和服务,并且它可以正常工作。
会不会是网络或服务器的问题?
如何找到给出错误的变量 InnerException 消息是“ValueType 'System.Int32' 不能为空。” ?
这是课
namespace Nuveen.Core.Entities
{
public class SPONSOR
{
[Key]
[Column(Order = 0)]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int intRelationshipID { get; set; }
[Key]
[Column(Order = 1)]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int intSponsorID { get; set; }
public virtual SPONSOR Sponsor { get; set; }
[Key]
[Column(Order = 2)]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int intFirmID { get; set; }
public virtual FIRM Firm { get; set; }
public int? numFO { get; set; }
--> 我刚刚添加了这一列(待添加到数据库中)
[StringLength(250)]
public string vchSalesTeam { get; set; } --> I just added this column also