Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Sarah S  
#1 Posted : Monday, September 14, 2015 8:59:37 AM(UTC)
Sarah S

Rank: Newbie

Groups: Registered
Joined: 9/14/2015(UTC)
Posts: 1
United States

Thanks: 1 times
Hi. Once in a while when loading certain messages, I get an exception "Value was either too large or too small for a character". I suspect there is a weird char in the body but I'm not sure. Have you seen this before and do you have any suggested solutions?

It comes from EAGetMail.Mail.HtmlBody in code similar to this:

Code:
public static string GetMailMessageBody(Mail message)
{
    string bodyHtml = message.HtmlBody;
    return bodyHtml;
}

Exception:
System.OverflowException: Value was either too large or too small for a character at System.Convert.ToChar(Int32 value)
at EAGetMail.Mail.4x(String Bt)
at EAGetMail.Mail.<s(Exception Bt, Object Bt)
at EAGetMail.Mail.get_HtmlBody()

Here's the body of one of the offending messages:
Code:

<!DOCTYPE html>=0D=0A<html lang=3D"en" xmlns=3D"http://www.w3.org=
/1999/xhtml">=0D=0A<head>=0D=0A  <meta charset=3D"utf-8" />=0D=0A=
  <title></title>=0D=0A  <style type=3D"text/css">=0D=0A    a:lin=
k {color:#003399;text-decoration:underline;text-underline:single}=
=0D=0A    .body {font-size:10pt;font-family:Arial,Helvetica,sans-=
serif}=0D=0A    .dlh {font-size:10pt;font-family:Arial,Helvetica,=
sans-serif;background-color:#808080;font-weight:bold}=0D=0A    .d=
lm {font-size:10pt;font-family:Arial,Helvetica,sans-serif;backgro=
und-color:#C0C0C0}=0D=0A    .dla {font-size:10pt;font-family:Aria=
l,Helvetica,sans-serif;background-color:#FFFFFF}=0D=0A  </style>=0D=0A=
</head>=0D=0A<body class=3D"body">=0D=0A  <p><a href=3D"http://ww=
w.microsoft.com/exchange/services"><img src=3D"http://na01.admin.=
protection.outlook.com/SpamDigest/SpamDigestLogo.png" alt=3D"Offi=
ce 365" border=3D"0"></a></p>=0D=0A  <p>Dear REDACTED@REDACTED=
S.COM:</p>=0D=0A  <p>You have 2 new spam-quarantined messages as =
of July 1, 2015 12:00 AM (UTC) which are listed below along with =
the actions that can be taken:</p>=0D=0A  <p><strong>Release to I=
nbox:</strong> Send the message to your Inbox.</p>=0D=0A  <p><str=
ong>Report as Not Junk:</strong> Send a copy of the message to Mi=
crosoft for analysis.</p>=0D=0A  <table style=3D"width:100%">=0D=0A=
    <tr class=3D"dlh">=0D=0A      <td>Sender</td>=0D=0A      <td>=
Subject</td>=0D=0A      <td>Date (UTC)</td>=0D=0A      <td>Size</=
td>=0D=0A      <td>Release</td>=0D=0A      <td>Report</td>=0D=0A =
   </tr>=0D=0A    <tr id=3D"DetailLineMain" class=3D"dlm">=0D=0A =
     <td>&quot;info@e.flyfrontier.com&quot; &lt;info@e.flyfrontie=
r.com&gt;</td>=0D=0A      <td>We&#39;re Turning 21! Celebrate wit=
h $21* Fares &#127881;&#9992;</td>=0D=0A      <td>Jun&nbsp;30,&nb=
sp;2015&nbsp;7:23&nbsp;AM</td>=0D=0A      <td>31330</td>=0D=0A   =
   <td><a href=3D"https://na01-quarantine.dataservice.protection.=
outlook.com/SpamDigest/SpamDigest.svc/releasespam/orgs/807e7447-7=
342-46c3-89df-691aa4fcf1d2/users/REDACTED@REDACTED.COM/mail/3=
03b612a-d2a5-4944-2a73-08d2811cd1d9?token=3D%2b0IOqlPPC2G65%2bxx6=
kj0f3%2fKnMA5hAom%2bU3fruhiJsk%3d">Release to Inbox</a></td>=0D=0A=
      <td><a href=3D"https://na01-quarantine.dataservice.protecti=
on.outlook.com/SpamDigest/SpamDigest.svc/reportfalsepositive/orgs=
/807e7447-7342-46c3-89df-691aa4fcf1d2/users/REDACTED@REDACTED=
.COM/mail/303b612a-d2a5-4944-2a73-08d2811cd1d9?token=3DMqgS6e6gNN=
56XgpSwv0TxDcmi7anVxlyU67hIjS9Yzw%3d">Report as Not Junk</a></td>=
=0D=0A    </tr><tr id=3D"DetailLineAlternate" class=3D"dla">=0D=0A=
      <td>&quot;info@info.3ecompany.com&quot; &lt;info@info.3ecom=
pany.com&gt;</td>=0D=0A      <td>3E EH&amp;S Express Newsletter -=
 June 2015</td>=0D=0A      <td>Jun&nbsp;30,&nbsp;2015&nbsp;11:10&=
nbsp;PM</td>=0D=0A      <td>77074</td>=0D=0A      <td><a href=3D"=
https://na01-quarantine.dataservice.protection.outlook.com/SpamDi=
gest/SpamDigest.svc/releasespam/orgs/807e7447-7342-46c3-89df-691a=
a4fcf1d2/users/REDACTED@REDACTED.COM/mail/1e0e80a1-ca61-4f5a-=
3dde-08d281a110dc?token=3D%2buiblPzkWRFnneR7QG%2b4acsMvNcTJCr71OM=
mOLRoxvw%3d">Release to Inbox</a></td>=0D=0A      <td><a href=3D"=
https://na01-quarantine.dataservice.protection.outlook.com/SpamDi=
gest/SpamDigest.svc/reportfalsepositive/orgs/807e7447-7342-46c3-8=
9df-691aa4fcf1d2/users/REDACTED@REDACTED.COM/mail/1e0e80a1-ca=
61-4f5a-3dde-08d281a110dc?token=3DvZWAADbc9bKh6LX1elZ8HJhm2ItFRdH=
HI%2bnnOEPDw%2bQ%3d">Report as Not Junk</a></td>=0D=0A    </tr>=0D=0A=
  </table>=0D=0A  <p style=3D"font-size:8pt">&copy; 2015 Microsof=
t Corporation. All rights reserved. | <a href=3D"http://go.micros=
oft.com/fwlink/?LinkID=3D79398">Acceptable Use Policy</a> | <a hr=
ef=3D"http://go.microsoft.com/fwlink/?LinkID=3D138500">Privacy No=
tice</a></p>=0D=0A</body>=0D=0A</html>=0D=0A

Edited by user Monday, September 14, 2015 9:22:30 AM(UTC)  | Reason: Not specified

ivan  
#2 Posted : Monday, September 14, 2015 3:49:04 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,013

Thanks: 9 times
Was thanked: 41 time(s) in 41 post(s)
Hi, this is an known issue and it was fixed at latest version, please download the latest version from:

https://www.emailarchite...net/downloads.aspx?cat=1

and have a try.
thanks 1 user thanked ivan for this useful post.
Sarah S on 9/15/2015(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.052 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AdminSystem Software Limited.