.NET Components for Mobility

Invalid Address

Last post 01-14-2008 12:15 PM by rheuser. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-14-2008 2:10 AM

    Invalid Address

    The problems continue.  My client in Japan using a DoCoMo phone, HTC Z, I think that same as an HTC TyTn, is now getting errors as well.  He was running OK for awhile.  This is the same code that I sent you in another post. This seems to be trying to add a Recipient to an email but I do not try to do that in my code.  What is going on?   The stack trace is:

    Error: Error processing Email and SMS messages
    Reason: Invalid address.
    Response: 場所 InTheHand.WindowsMobile.PocketOutlook.Recipient.CleanAddress()
    場所 InTheHand.WindowsMobile.PocketOutlook.Recipient..ctor()
    場所 InTheHand.WindowsMobile.PocketOutlook.Recipient..ctor()
    場所 InTheHand.WindowsMobile.PocketOutlook.EmailMessage.AddRecipients()
    場所 InTheHand.WindowsMobile.PocketOutlook.EmailMessage.ParseMime()
    場所 InTheHand.WindowsMobile.PocketOutlook.EmailMessage..ctor()
    at EmailMessageFolderEnumerator.MoveNext()
    場所 Observer_for_WM_PocketPC_Phone.Listener.RebuildMessageItemIDArray()
    場所 Observer_for_WM_PocketPC_Phone.Listener.TimerPutObservationLoop_Tick()
    場所 System.Threading.Timer.ring()


    code:

          foreach (InTheHand.WindowsMobile.PocketOutlook.EmailAccount EmailAccount in Session.EmailAccounts)
          {
            foreach (EmailMessageFolder MyEmailFolder in EmailAccount.Folders)
            {
              string MyAccountName = EmailAccount.Name;
              string EmailFolderName = MyEmailFolder.Name;
              if (MyEmailFolder.FolderType.ToString() == "Inbox" ||
                  MyEmailFolder.FolderType.ToString() == "DeletedItems" ||
                  MyEmailFolder.FolderType.ToString() == "SentItems")
              {
                foreach (InTheHand.WindowsMobile.PocketOutlook.EmailMessage EmailMsg in MyEmailFolder)
                {
                  MessageItemIDs.Add(EmailMsg.ItemId.ToString());
                }
              }
            }
          }
          foreach (InTheHand.WindowsMobile.PocketOutlook.SmsMessage SMSMsg in Session.SmsAccount.SentItems)
          {
            MessageItemIDs.Add(SMSMsg.ItemId.ToString());
          }

  • 01-14-2008 10:00 AM In reply to

    Re: Invalid Address

    The reason for the Recipient add in this case is because when the message is stored in it's raw MIME format the recipients table is not populated for the message and we have to add them in manually as the mime text is parsed. The issue could be occuring because the address contains some unexpected characters or encoding. If you are able to email me the details of the message as shown in the messaging application I can more easily identify the issue.

    Peter

  • 01-14-2008 12:15 PM In reply to

    Re: Invalid Address

    I am unable to provide the details of the message causing the problem currently.  I will improve my error logging so that when it reoccurs, I can catch the data that you need.  It is on a Japanese phone so the address my have had Japanese characters.  Is that a problem?   Which details would you like logged?

Page 1 of 1 (3 items)
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting