EWS API: {"The request failed. The remote server returned an error: (400) Bad Request."}
-
17 Agustus 2012 7: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.
Semua Balasan
-
17 Agustus 2012 14: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.- Disarankan sebagai Jawaban oleh Basit Farooq 17 Agustus 2012 14:27
- Saran Jawaban dibatalkan oleh Andries Muylaert 17 Agustus 2012 14:40
- Ditandai sebagai Jawaban oleh Andries Muylaert 17 Agustus 2012 15:26