反序列化错误InnerException消息是' ValueType' System.Int32'不能为空

时间:2016-12-10 23:34:39

标签: c# wcf serialization ef-migrations k2

我偶尔会遇到这个错误(它大约在2个小时前发生,但现在我没有收到错误)当启动K2表单(使用调用WCF服务的K2 SmartObjects)时。 当我不断收到错误时,它似乎处于不同的功能

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

0 个答案:

没有答案