Hi,
I am currently evaluating the Email.Net product as we looking into saving/uploading .msg files content into an Exchange Online mailbox using the Exchange Web Services (EWS) client.
I was successful so far in regards to saving the .msg content in the mailbox, however I’ve been recently facing and issue: The exceptions thrown have a generic message like
An internal server error occurred. The operation failed.
which I know comes from the EWS response.
I investigated further and found out that the actual issue was that the mailbox was full which is identified by EWS with the ErrorQuotaExceeded
error code as seen below:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="5791" MinorBuildNumber="27" Version="V2018_01_08"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</s:Header>
<s:Body>
<m:CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Error">
<m:MessageText>An internal server error occurred. The operation failed.</m:MessageText>
<m:ResponseCode>ErrorInternalServerError</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
<t:Value Name="InnerErrorMessageText">The process failed to get the correct properties.</t:Value>
<t:Value Name="InnerErrorResponseCode">ErrorQuotaExceeded</t:Value>
<t:Value Name="InnerErrorDescriptiveLinkKey">0</t:Value>
</m:MessageXml>
<m:Items/>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
My question is: Is there a way to get the actual error reason instead of a generic message?
Many thanks,
LPires