Dynamics crm 2011 ssis脚本组件最大字符串内容长度出错

Dynamics crm 2011 ssis脚本组件最大字符串内容长度出错,dynamics-crm-2011,crm,ssis,dynamics-crm-4,Dynamics Crm 2011,Crm,Ssis,Dynamics Crm 4,您好,我的ssis脚本组件有问题,我试图从SDK中的表注释中获取attr文档体,但出现了错误 “格式化程序在尝试反序列化消息时引发异常:尝试反序列化参数时出错。InnerException消息为“反序列化CRM.Proxy.CrmSdk.Entity类型的对象时出错。最大字符串内容长度配额(8192)读取XML数据时已超过。可以通过更改创建XML读取器时使用的XmlDictionaryReaderQuotas对象的MaxStringContentLength属性来增加此配额。第1行,位置4280

您好,我的ssis脚本组件有问题,我试图从SDK中的表注释中获取attr文档体,但出现了错误

“格式化程序在尝试反序列化消息时引发异常:尝试反序列化参数时出错。InnerException消息为“反序列化CRM.Proxy.CrmSdk.Entity类型的对象时出错。最大字符串内容长度配额(8192)读取XML数据时已超过。可以通过更改创建XML读取器时使用的XmlDictionaryReaderQuotas对象的MaxStringContentLength属性来增加此配额。第1行,位置428045。“。有关详细信息,请参阅InnerException。”

公共字节[]GetAllAnnotations(Guid附件ID) {


您是否在脚本中使用任何配置文件。@VikramsinhShinde否
    Entity attachment;
    ColumnSet columnSet = new ColumnSet();
    columnSet.Columns = new string[] { "filename", "documentbody", "mimetype" };
    attachment = service.Retrieve("annotation", attachmentId, columnSet);

    MessageBox.Show(attachment["documentbody"].ToString());
    if (attachment == null || String.IsNullOrEmpty(attachment["documentbody"].ToString()))
        return null;

    return Convert.FromBase64String(attachment["documentbody"].ToString());

}