EWS API: {"The request failed. The remote server returned an error: (400) Bad Request."}

Answered EWS API: {"The request failed. The remote server returned an error: (400) Bad Request."}

  • 2012年8月17日 上午 07:17
     
     

    Hello,

    I make a simple EWS call to create an appointment with a small attachment (120Kb).

    When i .Save() or .Update() the appointment without the attachment everything is ok.

    Doing the same with the attachment fails with the follwoing error:

    {"The request failed. The remote server returned an error: (400) Bad Request."}

    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(HttpWebRequest& request)\r\n   at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()\r\n   at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()\r\n   at Microsoft.Exchange.WebServices.Data.ExchangeService.CreateAttachments(String parentItemId, IEnumerable`1 attachments)\r\n   at Microsoft.Exchange.WebServices.Data.AttachmentCollection.InternalCreateAttachments(String parentItemId, IEnumerable`1 attachments)\r\n   at Microsoft.Exchange.WebServices.Data.AttachmentCollection.Save()\r\n   at Microsoft.Exchange.WebServices.Data.Item.InternalUpdate(FolderId parentFolderId, ConflictResolutionMode conflictResolutionMode, Nullable`1 messageDisposition, Nullable`1 sendInvitationsOrCancellationsMode)\r\n   at Microsoft.Exchange.WebServices.Data.Appointment.Update(ConflictResolutionMode conflictResolutionMode, SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)\r\n 

     
    Any help would be appreciated. Thanks in advance.

所有回覆

  • 2012年8月17日 下午 02:27
     
     已答覆
    This appears not to be a SQL Server related error message. You can confirm this answer by reviewing your ERROR LOG.

    Regards,

    Basit A. Farooq (MSC Computing, MCITP SQL Server 2005 & 2008, MCDBA SQL Server 2000)

    http://basitaalishan.com

    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.