none
Server was unable to process request. RRS feed

  • 问题

  • ColumnSet cols = new ColumnSet();
            cols.Attributes = new string[] { "yc_warehouseid", "yc_name" };
            QueryExpression query = new QueryExpression();
            query.EntityName = EntityName.yc_warehouse.ToString();
            query.ColumnSet = cols;

            ConditionExpression condition = new ConditionExpression();
            condition.AttributeName = "yc_type";
            condition.Operator = ConditionOperator.Equal;
            condition.Values = new string[] { "仓库"};

            FilterExpression filter = new FilterExpression();
            filter.FilterOperator = LogicalOperator.And;
            filter.Conditions = new ConditionExpression[]{condition};

            query.Criteria = filter;
            RetrieveMultipleRequest request = new RetrieveMultipleRequest();
            request.Query = query;

            CrmService service = this.GetService();
            RetrieveMultipleResponse retrieved = (RetrieveMultipleResponse)service.Execute(request);
            return retrieved.BusinessEntityCollection.BusinessEntities;

     

    出现标题中的错误??

    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息: System.Web.Services.Protocols.SoapException: Server was unable to process request.

    源错误:

    行 114:  [return: System.Xml.Serialization.XmlElementAttribute("Response")]
    
    行 115:  public Response Execute(Request Request) {
    
    行 116:   object[] results = this.Invoke("Execute", new object[] {
    
    行 117:      Request});
    
    行 118:   return ((Response)(results[0]));

     

    这是什么问题啊?? catch到错误为 Error: Server was unable to process request. - 0x80040216 An unexpected error occurred. Platform
    2010年8月3日 14:03

答案