Error with Active Sync Exchange 2003

Hi,

I am trying to set up active sync with Exchange on server 2003. When I run a scan from here https://www.testexchangeconnectivity.com Everything passes but this

 Attempting an ActiveSync session with server
  Errors were encountered while testing the ActiveSync session
   Test Steps
   Attempting to send OPTIONS command to server
  Testing the OPTIONS command failed. See Additional Details for more info
   Additional Details
  A Web Exception occurred because an HTTP 401 - Unauthorized response was received from IIS6  
 
If I go to https://owa.companyname.com/oma  I get a login and i can log in and get a text based inbox.  
I can't figure out why this is happening. I am sure it is something simple that I am just missing.

Thanks
LVL 5
Esmm3Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan HardistyCo-OwnerCommented:
My Exchange 2003 / Activesync article should sort you out:
http://www.experts-exchange.com/articles/Software/Server_Software/Email_Servers/Exchange/Exchange-2003-Activesync-Connection-Problems-FAQ.html
It lists what to do with 401 errors - or at least what is potentially wrong with them and if that is not the case, please let me know.
0
Esmm3Author Commented:
Hi alanhardisty,

I have gone through and made the changes I even reset the default virtual directories. OWA is working no problem but I can't get Active sync to work for the life of me. But the good news is it seems to authenticate ok now.....BUT now I am getting a different error...lol.

 Attempting FolderSync command on ActiveSync session
  FolderSync command test failed
   Additional Details
  An HTTP 403 forbidden response was received. The response appears to have come from Unknown. Body is: <body><h2>HTTP/1.1 403 Forbidden</h2></body>  

This is the most trouble i have ever had getting activesync to work.  Any help would be great.
Thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Alan HardistyCo-OwnerCommented:
As per my article:
http://www.experts-exchange.com/articles/Software/Server_Software/Email_Servers/Exchange/Exchange-2003-Activesync-Connection-Problems-FAQ.html
Please read the 403 Error section and follow the recommendations (KB817379).
0
Esmm3Author Commented:
Hi Alanhardisty,

So I have followed everything in that article and I am stuck on the 500 error.

Attempting FolderSync command on ActiveSync session
  FolderSync command test failed
   Tell me more about this issue and how to resolve it
   Additional Details
  Exchange ActiveSync returned an HTTP 500 response.  
 
  I have done everything any other ideas?

Thanks
0
Alan HardistyCo-OwnerCommented:
Unfortunately, if you have tried everything in my article and you still have the 500 error then I can't help you any more and recommend that you call Microsoft, as something is not quite right.

If you do call them and get the problem resolved, I would love to know what they do to get the problem solved.
0
Esmm3Author Commented:
Hi Alan,

SO i decided to start all over.  becasue i am still having no luck.  so our OWA server is this https://owa.company.com/exchange. now for the activesync server i am just putting in owa.company.com.   does that sound right?  could that be my issue? although it does seem to connect.
0
Alan HardistyCo-OwnerCommented:
Yes to owa.company.com - nothing after it needs to be added.
0
Esmm3Author Commented:
THis is the error that i get in the event viewer


The mailbox server [server.domain.local] does not allow "Negotiate" authentication to its [exchange] virtual directory. Exchange ActiveSync can only access the server using this authentication scheme.  For information about how to configure Exchange virtual directory settings, see Microsoft Knowledge Base article 817379, "Exchange ActiveSync and Outlook Mobile Access errors occur when SSL or forms-based authentication is required for Exchange Server 2003" (http://go.microsoft.com/fwlink/?linkid=3052&kbid=817379).   For information about how to properly configure IIS to support Kerberos and NTLM authentication, see Microsoft Knowledge Base article 215383, "How To Configure IIS to Support Both Kerberos and NTLM Authentication" (http://go.microsoft.com/fwlink/?linkid=3052&kbid=215383).   This issue may occur after installing Windows SharePoint Services on a server running Exchange Server 2003. For information about how to properly configure a server to run both Windows SharePoint Services and Exchange Server 2003, see Microsoft Knowledge Base article 823265, "You receive a "Page not found" error message when you use Outlook Web Access (OWA) to browse the Exchange Server 2003 client after you install Windows SharePoint Services" (http://go.microsoft.com/fwlink/?linkid=3052&kbid=823265).

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
0
Alan HardistyCo-OwnerCommented:
Is the certificate named owa.company.com?
0
Esmm3Author Commented:
hmmm not sure. where do i check that?
0
Alan HardistyCo-OwnerCommented:
Open up IIS Manager, expand web sites, right-click your default web-site and choose properties.  Click on the Directory Security tab and then on view certificate button.

You will see the name on the certificate right in the middle of the window.
0
Esmm3Author Commented:
hes it is owa.company.com

I jsut followed the instructions for this (http://go.microsoft.com/fwlink/?linkid=3052&kbid=215383).   it made no difference.  I am still getting the 500 error.

If I use my email as a login instead of domain\user  I get this error.

A Web Exception occurred because an HTTP 401 - Unauthorized response was received from Unknown

0
Alan HardistyCo-OwnerCommented:
Okay - visit the test site:
https://testexchangeconnectivity.com
Run the Exchange Activesync test - Specify Manual Server Settings
For the Activesync server enter - owa.company.com
For Domain\username enter your internal domain name without the .local .com part (and no more than the first 15 characters) followed by \username
Enter your password twice
Tick all 3 boxes (unless your certificate was purchased in which case untick Ignore Trust for SSL).
Run the test.
Copy / paste the result - please obscure the IP / domain names.
0
Esmm3Author Commented:
Testing Exchange ActiveSync
Exchange ActiveSync test Failed
Test Steps
Attempting to resolve the host name owa.domain.com in DNS.
Host successfully resolved
Additional Details
IP(s) returned: XXX.XXX.XXX.XXX

Testing TCP Port 443 on host owa.domain.com to ensure it is listening and open.
The port was opened successfully.
Testing SSL Certificate for validity.
The certificate passed all validation requirements.
Test Steps
Validating certificate name
Successfully validated the certificate name
Additional Details
Found hostname owa.domain.com in Certificate Subject Common name

Testing certificate date to ensure validity
Date Validation passed. The certificate is not expired.
Additional Details
Certificate is valid: NotBefore = 5/26/2008 9:13:06 PM, NotAfter = 5/16/2010 9:49:24 PM"



Testing Http Authentication Methods for URL https://owa.company.com/Microsoft-Server-Activesync/
Http Authentication Methods are correct
Additional Details
Found all expected authentication methods and no disallowed methods. Methods Found: Basic

Attempting an ActiveSync session with server
Errors were encountered while testing the ActiveSync session
Test Steps
Attempting to send OPTIONS command to server
OPTIONS response was successfully received and is valid
Additional Details
Headers received: Pragma: no-cache
Public: OPTIONS, POST
Allow: OPTIONS, POST
MS-Server-ActiveSync: 6.5.7638.1
MS-ASProtocolVersions: 1.0,2.0,2.1,2.5
MS-ASProtocolCommands: Sync,SendMail,SmartForward,SmartReply,GetAttachment,GetHierarchy,CreateCollection,DeleteCollection,MoveCollection,FolderSync,FolderCreate,FolderDelete,FolderUpdate,MoveItems,GetItemEstimate,MeetingResponse,ResolveRecipients,ValidateCert,Provision,Search,Notify,Ping
Content-Length: 0
Date: Fri, 30 Apr 2010 16:24:13 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET



Attempting FolderSync command on ActiveSync session
FolderSync command test failed
Tell me more about this issue and how to resolve it
Additional Details
Exchange ActiveSync returned an HTTP 500 response.
0
Esmm3Author Commented:
thanks I was trying to figure out how to do that....lol.
0
Alan HardistyCo-OwnerCommented:
You can't - but I can ; )
0
Alan HardistyCo-OwnerCommented:
Have you followed KB883380 - Method 2 and the section after that in my article (if Method 2 of KB883380 fails)?
0
Esmm3Author Commented:
Yes I just did that again today.about an hour ago
0
Alan HardistyCo-OwnerCommented:
Okay - can you please download and install the Massync.dll update (conveniently posted in the following EE question):
http://www.experts-exchange.com/Apple/Hardware/iPhone/Q_25767899.html?cid=1135#a30140466 
Not guaranteed to fix the problem, but one less possibility to rule out before a call to Microsoft : (
0
Esmm3Author Commented:
Thanks Alan,

I have applied the pactch but have to wait to reboot the server.  I will keep you posted.  Thanks again for all your help so far.

Matt
0
Alan HardistyCo-OwnerCommented:
No probs - the 500 error sometimes I can fix, other times it's a Microsoft phone call.  I'll hope for the former.
0
Esmm3Author Commented:
Hi Alan,

So i followed the other article.K817379.  I am still getting a 500 error but am now getting a new error in the eventlog.

Event Type:      Error
Event Source:      Server ActiveSync
Event Category:      None
Event ID:      3005
Date:            5/1/2010
Time:            12:31:16 PM
User:            DOMAIN\User
Computer:      SERVER
Description:
Unexpected Exchange mailbox Server error: Server: [server.domain.local] User: [user@company.com] HTTP status code: [500]. Verify that the Exchange mailbox Server is working correctly.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

So I think i am making progress...lol.
0
Alan HardistyCo-OwnerCommented:
If you have tried those then we are nearly at telephone time.
Once last thing to try that was posted in another Activesync question that is still open is the following:
http://serverfault.com/questions/41354/exchange-server-not-serving-mobile-devices-how-to-troubleshoot
At the bottom of the article is a "Fix after two days of troubleshooting".  Do you want to try that and report back?
If not, then I am out of ideas I'm afraid and it's time to call in Microsoft.
0
Esmm3Author Commented:
Hey Alan,

I got it working with a little digging through the eventlog.  When I was trying to sync I noticed this error everytime too:

Event Type:      Error
Event Source:      MSExchangeIS
Event Category:      General
Event ID:      9667
Date:            5/2/2010
Time:            2:21:34 PM
User:            N/A
Computer:      Server
Description:
Failed to create a new named property for database "First Storage Group\Mailbox Store (Server)" because the number of named properties reached the quota limit (8192).
 User attempting to create the named property: "SYSTEM"
 Named property GUID: 00020329-0000-0000-c000-000000000046
 Named property name/id: "AirSyncCustom:wipeinitiated"

For more information, click http://www.microsoft.com/contentredirect.asp.

So I got thinking that it seems that it can't create something becasue of the limit there of 8192.

So digging aound I found this article:  http://support.microsoft.com/default.aspx?kbid=820379

While looking at that I followed where to go in the registry, and while in there i noticed a entry called:

NonMAPI Named Props Quota
and the data there was set to 2000 which gave the limit of 8192.  I just changed it to 3000 and now the limit is 12288.

I ran the synctest again and it work.  It is now syncing flawlessly on my iphone. :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.