ActiveSync/Exchange Sending multiple copies of email - Mogul, XV6800 ROM Development

Hi,
After an upgrade (No2Chem 3.49 Radio 3.42.40) everything works really great!!! Except, I am having an issue with ActiveSync.
Intermittently, (sometimes every 3 seconds, sometimes every 10 minutes), a blank window covers the whole screen with a title of "ActiveSync" and an "ok" in the upper right corner. If I click ok, the ActiveSync main window appears. I believe everytime this happens, it is resending all of the email in my outbox and the message never gets removed from the outbox even though it is delivered to the recipient.
ActiveSync works fine with PC via USB and for all features besides the email. Also, SMS and Gmail correctly clear the inbox and send only the single email (this is what makes me think it is the ActiveSync).
TIA,
Brian.

I have seen that with the MR1 ROM while ActiveSync is doing its first sync with a large mailbox. (I've got a couple thousand messages from the past month that sync via Exchange.)
I've noticed intermittantly unreliable behavior of the Exchange mail client while it's still cranking away at the initial sync (failing to set message read flags server-side, to be specific).
Regardless, though, things worked fine for me after ActiveSync finished the big initial sync run.

Thanks Skywing,
That doesn't appear to be the case. I only have ~20 emails trying to sync. I did try re-flashing as well as reinstalling AS to no avail.
FYI to all --
I did just come across this thread on MS Mobile support forums...
https://forums.microsoft.com/window...1&siteid=65&sb=0&d=1&at=7&ft=11&tf=0&pageid=0
It appears that this is an issue with Exchange 2007 and WM6.1. It looks like there is a hotfix that needs to be installed on the server side (which I don't have control over). There is a chance this isn't the issue, but it certainly sounds like all of the same symptoms. Unfortunately, there is no apparent client-side fix.
-Brian.

Related

mail2web and exchage server problems

ok i signed up for mail2web and at first it seems to work very well. for the first five mins after when i click sync on active sync any mail that is sent to my mail2web.com account gets pushed to my device. but after about 5 mins or so i tested again and i got nothing, first i checked to see if i accidntly shutt down activesync, it was so i turned it on again. later i checked if the activesync was on and it was, so i tested and still no email pushed to my device. i then clicked sync and all my emails came to my device then again for the next five mins or so i am able to get my emails but after that it just stops. im using pk 3.0 currently . can anyone help please.
i dont want to have to set my device to sync every 5 mins because that defeats the purpose of push email.
Did you setup your account correctly on your device? Server name, User name and password.
It must be the case that you don't have to click on anything to sync, that's why it's called push mail.
yeah i did, one of the problems is active sync doesnt stay connect . it stays connected for like 10 mins after that it just shows last synced time. if i didnt set up the server properly then the device wouldnt get any mail at all, but it does. when i sync with active sync it pushes mail for like 5 mins, after that it says connected but no mail is getting pushed through, then after 10 mins it disconnects all together.
when you have push mail you should not have to set a time interval, it should get pushed, in real time, to your device. i use mail2web with gmail and it works great

Activesync push email delay

I'm experiencing a ~15 minute delay on push email from my company's exchange server. I first noticed this a week or 2 after flashing to DCD 3.2.6. Yesterday, I flashed to DCD 3.3.4 in hopes that this would help to resolve the issue. Unfortunately, I am still experiencing the delay. Is this a known issue, and is there some way to tweak / fix this?
Rom: DCD 3.3.4
Radio: 3.42.50
Carrier: VZW
Many Variables
Hi c3rb3rus,
I actually found that DCD's and No2Chem's ROMs improved the push e-mail on my xv6800. I remember the dark ages, when the original, non-GPS VZW stock ROM had all those problems with missed alarms and notifications.
Having said that, I still get sporadic delays, via two mechanisms:
1) The rlToday plugin (using s2w blackdrop) shows that an e-mail has arrived, yet my xv6800 does not generate a notification. This happens more frequently when I have Messaging running in the background (as opposed to 'completely closed' with Quickmenu)
2) Activesync just does not fully 'check' enough times, even with the sync schedule set to "as items arrive" with "sync on roaming" enabled. I am playing around with the following registry key to see if things improve:
HKCU/Software/Microsoft/Activesync
In this key, you'll see settings like "InitialHeartBeat" and "Maxheartbeat." I am currently playing with these settings to see if my Activesync response time increases.
There is an MSDN article on the heartbeat settings. From what I understand, if the server has nothing new after eight minutes, the next "polling" time is delayed. It gets delayed more and more, when finally... Smack! An e-mail comes 15 minutes after it was originally set.
The link to the article is in the following thread (should be the first post):
http://www.ppcsg.com/lofiversion/index.php/t75611.html
I believe there are some nice XDA Threads that talk about this article, as well. I'll definitely search the archives when my schedule loosens up a bit.
I have only tested my new registry settings for a day -- I'll spam this thread like crazy if things significantly improve.
Sync Delay: Update!
I think there's an improvement. My registry settings follow below, and they drastically differ from the default values.
HKCU/Software/Microsoft/Activesync
MinHeartBeat = 120
InitialHeartBeat = 180
MaxHeartBeat = 420
HeartBeatIncrement = 60
My results so far, over the past 48 hours:
- I got 31 e-mails, 26 arrived instantly with proper notifications, 2 were delayed by a few minutes.
- 2 e-mails arrived on time but did not generate a proper notification.
- 1 e-mail was screwed up -- I got a proper notification, but it arrived nearly 40 minutes after it was sent! I don't know what happened here.
Overall, 1 out of 31 nerfed e-mails isn't that bad... Much better than the occasional 10-20 minute delays I had in the past.
It looks like the new registry settings have improved my Exchange sync issues, but I'll have to keep testing over the next few weeks to ensure that this isn't a placebo effect.
I haven't tried DCD's 3.3.4 ROM yet (I was using NueROM-M up to now). I've flashed with DCD's latest to see if there are any differences in e-mail sync. More updates to follow later on.
Spoke too soon
I see...
I think the Power Management of features of DCD 3.3.4 are a bit different from those in NueROM-M, as I am now experiencing the same delays you're getting.
With 3.3.4, Activesync does not like to sync when the phone is sleeping. If I uncheck the "turn off very x minutes" box in the power options, and just turn the screen off with Quickmenu, the e-mail 'delays' go away. This is not a huge issue for me, since I use an extended battery.
I'm sure the differences are limited to a few different registry settings between both ROMs. Perhaps I'll fiddle with the "DisablePowerManagement" settings in the registry to see if it changes anything.
I should add that I have experienced this issue with all Titan ROMs, custom or stock. However, in my experience, it happens to a lesser degree with DCD's WM6.1 ROMs and Pre3, and yet even moreso with NueROM-M.
I like the speed of 3.3.4, so I'll probably stick with that and turn off the screen via Quickmenu. I'm guessing it's not the solution you had in mind , but I am convinced that these e-mail delays are directly related to power management.
Wow, thanks for the indepth replies! By turning the screen off with the Quickmenu, do you mean the power button?
I'm going to give the disabling 'turn off every x minutes' a try to see how that effects things.
Strangely, I never noticed this issue on the stock ROMs, but there is no way I'm going back to them. I'll let you know how it turns out.
just to chime in. I've only used stock DCD roms for my phone and now on scott's M2D stock rom. we run an exchange 2007 server and i get emails to my phone a few seconds faster than my outlook 2007 and i'm on the same switch as my servers.
I seriously think it's an issue with the server unless you're the only winmo 6.1 user with this problem?
I've thought of that, and even asked other people at my company with win mobile phones if they have any kinda of delay. They all seem to be fine. I used to get emails on my phone before I did in outlook, but after going to a custom ROM this is what happened.
Maybe it had something to do with the radio version? I'm running 3.42.50
Another update
Unfortunately, I had some touchscreen lagging and stability issues with 3.3.4 (strange... probably a bad flash on my part), and decided to switch back to nueROM-M.
I haven't gotten many e-mails recently, but since switching back to nueROM-M, the delay seems to have vanished once again . I agree, this is really weird. When I get slammed with e-mails after the weekend, I'll confirm if this is indeed the case.
One thing I did notice is that the "DisablePowerManagement" registry settings are all "1" in DCD 3.3.4, but they are all "0" in nueROM-M. However, the fact that Jas0nMack is not getting any delays leads me to believe that these registry setings are not the key.
By the way, When I meant Quickmenu, I meant this app, which replaces your start menu with a cascading menu:
http://www.freewarepocketpc.net/ppc-download-quickmenu-v2-7.html
There's an option in QuickMenu to turn off the screen without turning off the phone. If you use this (in combination with disabling the "turn off in x minutes" option in the power settings), and the e-mail delays go away, then we'll know that it's a power issue. This is how I diagnosed the delays I was getting on my xv6800, during my stock ROM days...

ActiveSync - possible solution for some problems

After numerous upgrades and ROM restorations, ActiveSync effectively stopped working:
When I hooked up my 7500 to the USB, ActiveSync would start syncing but "never" actually finish. ActiveSync would say "Synchronizing" but not show any progress. Finally I let the program run ... and run ... and run. After 10 hours of running, I finally got an error message telling me that 13 appointments could not be synced.
I was able to track down each of the appointments and each appointment was defective. I corrected each appointment and tried ActiveSync again.
It took 3 cycles of 10 hour running time to finally purge or correct all my defective appointments, but now ActiveSync runs quickly and without problem.
Hopefully this will help in some instances.

ActiveSync Issue...Server Changed ReSync Required

Hello,
I was unsure of which thread category to post this, so I did a couple, Hacking and this ROM, sorry if this is misplaced. Correction and criticism welcomed.
Here is the issue...
Have a AT&T Fuze with the NRG v2.0 41609 ROM. Running MSO2007, specifically Outlook 2007 through Exchange on my company's network. I do not know what Exchange server version we are running.
On occasion, perhaps 1-2 times per day I must completely resync my Fuze contacts, calendar, etc, etc with Outlook 2007. Why? The "server" changed. Sorry, the error message I recently got and have gotten in the past essentially says the data on the server has changed and I must resync all of the data the Fuze. I do not recall the EXACT message. Bottom line though is nothing "changed" at least by me.
Also, under the Settings > Connections there is a "Edit my Proxy setting choice and it auto checks and completes an entry xxxxxxx.com for the server address. I have unchecked, rechecked, etc hoping this helps aovid this regular resync.
Lastly, the resync takes about 90 minutes given all of the contacts, calendar, email and if it did not take so long I would not fret about it.
So why and why might I change to avoid this.
Thanks in advance,
m0
P.S. I search but frankly was uncertain what to put as search words to increase the applicable hits
Picture has been added.
I had the same problem often with my previious phone Motorola Q6h. However, I don't remember how I have dealt with it. Try to syncronize by bluetooth...
This is an old bug. It is across XP, Vista, Vista 64 bit, WM 5.0, 6.1 & 6.5.
There are a couple of alternatives. Most report that using BlueTooth solves the problem. Another option is to use Emoze, but that is not flawless either. My fix is less friendly, but has worked for me 100% of the time. I do this every time I flash a new ROM.
Do the following:
1) Hard Reset - I know, a pain.
2) Set Owner information
3) delete old partnership on PC
4) reboot PC
5) connect phone to PC and select default sync options. After initial sync, with the phone still connected, on the PC go to ActiveSync or WM Device Center and change your sync options to your own liking; 2 weeks of email, notes etc...
6) let it fully sync
7) after it does the second full sync (still first connection) disconnect the phone
8) On the phone, Start>Settings>Connections>USB to PC> deselect "enable Faster transfer" or "Advanced Networking" depending on 6.5 or 6.1.
9) >OK - Soft reset
10) after phone comes back to life reconnect to PC and syncing should work fine.
I think the problem has to do with timing on the faster USB transfer rate. The PC is expecting a response and when the phone does not give it fast enough, it throws an error and you get to sync from scratch.
The only downside I have found for not having the faster transfer rate is it takes a bit longer to sync. That is why I like to change to my options (step 5) before I disconnect the first time. The big transfer is faster. After that it is just updates, so speed is not as important.
The only other down side is that if you own a RedFly, it requires the Advanced Connection which screws up your activesync. But the RedFly does not work well with the Touch Pro anyway and not at all with WM 6.5.
Hopefully this will work for you.
Doug M.
90 Mins for a sync? Crap... Do you have a large number of contacts (how many), or calandar items, or email? THe most mine has ever taken is about 2 minutes to do its initial sync OTA, not on a PC.
Are you syncing OTA or connecting to on a PC?
Guys, thanks of the help on the ActiveSync issue. I fashed a new NRG ROM and so far all is ok with thew sync. I do have some other OCD items that I am working on, like all blue highlights, blue / black Tachi phone, getting HTC Blue.task to be blue, EzInput 2.0 FULL (vs. compact) with arrows and blue character key press, etc, etc so so far no AS issues.
As far as how much stuff I have?
1600 contacts
2500 calendar items
100 emails (only Ocutlook IN and OUT boxes)
Again thanks.
If you have nay insight on the other items, please PM or post.
Best,
m0
i found a fix that works almost flawlessly. i get this problem maybe once a week and it's a pain in the ass.
go into activesync settings (when not connected) through your phone. uncheck email (hit yes if it promts you for deleting emails, etc). Re-check, connect, re-sync. That usually does it for me. If not, try syncing after deleting emails and then disconnecting, checking emails again then resyncing.
hope it works for you guys too!!

Exchange mobile sync working... Except Calendar???

I got my phone to repairs because of a broken touchscreen.. Nicely done by HTC, they came to pick it up and returned a new unit a week later. Very good service...
However, now there's something strange going on.. I've reconfigured the Exchange mobile sync part with OWA server and all. Now everything (Mail and Contacts) is synchronizing nicely, except my Calendar??
When Calendar is being synced, you can see it tries 3 times and then a "cannot connect to server" error.. This seems odd, because for contacts and mail it connects perfectly to the exact same server...
I tried to configure it on 2 firmware versions, the original and the rooted Modaco rom, no change.
Is there some logging going on where I maybe can pinpoint the problem??
Out of the blue it works again

Categories

Resources