Solved

Exchange 2007 ActiveSync stopped working on SBS 2008

Posted on 2013-05-28
17
1,318 Views
Last Modified: 2013-06-10
I have an SBS 2008 server with Exchange 2007 running and am having a problem with Activesync.  When I initally set the server up a year ago it was working fine but now I am unable to get it to work at all.  

I ran the accessmylan activesync tester as well as the microsoft remote connectivity analyser and they came back as activesync is not installed.  

I then went to uninstall and reinstall the activesync virtual directory through the Exchange Managment Shell and was successfully able to remove it but am now getting an error trying to create it.  The error states:
new-activesyncvirtualdirectory : An error occurred while creating the IIS
virtual directory
'IIS://servername.domain.local/W3SVC/3/ROOT/Microsoft-Server-ActiveSync' on
'servername'.
At line:1 char:1
+ new-activesyncvirtualdirectory -websitename "SBS Web Applications"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (JTSSBS\Microsof...b Applicati
   ons):ADObjectId) [New-ActiveSyncVirtualDirectory], InvalidOperationExcepti
  on
    + FullyQualifiedErrorId : 50A0BD64,Microsoft.Exchange.Management.SystemCon
   figurationTasks.NewMobileSyncVirtualDirectory

After some research I found an article suggesting editing the applicationhost.config IIS file and manually removing the activesync entry from there.  However when looking through the file, the activesync entry is not present.  

I'm not sure where to look or how to proceed troubleshooting at this point.
0
Comment
Question by:hbmonline
  • 8
  • 6
17 Comments
 
LVL 10

Expert Comment

by:akhalighi
ID: 39201770
this may sound a bit off but you know that active sync service doesn't start by default ; you have to manually start it .
0
 
LVL 15

Expert Comment

by:jerseysam
ID: 39201776
Although for exchange and activesync on SBS 2003. I always use this guide. Helps me check a few things regarding virtual server settnigs etc. May be helpful:

http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/A_1798-Exchange-2003-Activesync-Connection-Problems-FAQ.html
0
 

Author Comment

by:hbmonline
ID: 39201793
What service needs to be started to run activesync?  There is no activesync service listed in services.msc on SBS 2008.  

At this point my issue is not starting the activesync service but re-creating the activesync virtual directory.  Currently the virtual directory does not exist at all.
0
 
LVL 10

Expert Comment

by:akhalighi
ID: 39201842
not sure about your syntax : MS says it should be a domain name :


New-ActiveSyncVirtualDirectory -WebSiteName "Contoso.com"

Could be that , cause you are getting an error that complains about fully qualified domain name .
0
 

Author Comment

by:hbmonline
ID: 39201877
From everything I've read it states that the -websitename argument needs to be followed by the actual website being used by exchange and where the virtual directory is located.  In this case since it's SBS 2008 the website name is "SBS Web Applications".

I don't see anything in the error about a fully qualified domain name problem.  It does state a fullyqualifiederrorid number.
0
 
LVL 10

Expert Comment

by:akhalighi
ID: 39202098
I am looking on my server now .... will post back shortly.

the error starts with "fullyqualifiederrorid" ,  also it says invalid operation exception . could be related to syntax..
0
 
LVL 10

Expert Comment

by:akhalighi
ID: 39202146
You are right , it's not the FQDN that is causing this .. what do you get if you run this command :

Get-ActiveSyncVirtualDirectory

is it returning empty ?

did you try the full syntax for creating it ?

New-ActiveSyncVirtualDirectory -WebsiteName "SBS Web Applications" -InternalUrl "https://Sites/Microsoft-Server-ActiveSync" -ExternalAuthenticationMethods Basic -InternalAuthenticationMethods Basic

what do you see in windows application logs ?
0
Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 

Author Comment

by:hbmonline
ID: 39202170
get-activesyncvirtualdirectory comes up empty.  

I tried entering the full syntax you posted and have the same error message.  

There are no errors or infomational events in the application section of event viewer.
0
 
LVL 10

Expert Comment

by:akhalighi
ID: 39202303
still researching in my end ;Please try New-ActiveSyncVirtualDirectory  alone without any parameters .

do you get the same message ?Is this the full error message ? anything more ?
0
 

Author Comment

by:hbmonline
ID: 39202323
I have tried the command without any parameters and got the same error.
I copied the text directly out of exchange shell. I can't find any other errors on the server.
0
 
LVL 10

Expert Comment

by:akhalighi
ID: 39202632
hmm ... this link is useful ; open your IIS and take a look into structure ; see this one :

http://www.outlookforums.com/threads/73412-exchange-2010-activesync-broken-how-fix/
0
 

Author Comment

by:hbmonline
ID: 39202755
The Microsoft-Server-Activesync is not existent in IIS after I initially removed the directory using the remove-activesyncvirtualdirectory command (which was successful).

I'm still unable to get the new-activesyncvirtualdirectory command to work regardless of the arguments used.  To ensure I was using the proper syntax I ran the command "get-help new-activesyncvirtualdirectory" and verified that I was using the correct command.  

Just as an experiment I tried manually creating the virtual directory in IIS using the settings from another server.  As expected it did not work.  I tried to run the new-activesyncvirtualdirectory command with the manually created directory in place and I got an error stating that it could not be made because it already exists.  But when i run get-activesyncvirtualdirectory it returns blank and remove-activesyncvirtualdirectory fails stating that the directory does not exist.  

At this point I am completely lost on where to look at next.  I've scoured through dozens of forums discussing similar problems but they either ended with no answer or the fix does not work on this server.
0
 

Author Comment

by:hbmonline
ID: 39202817
Not sure if this is any sort of clue but if I manually create the msexchangesyncapppool in application pools and then run the new-activesyncvirtual directory command, the command still fails but it deletes the application pool I created.  So I'm not sure if the problem is related to creating the application pool or the virtual directory.
0
 

Accepted Solution

by:
hbmonline earned 0 total points
ID: 39223869
I ended up having to call Microsoft on this problem.  It turns out that the issue was caused by a Windows Update.  KB2506146 Management Framework 3.0 was installed on this server.  That update is only compatible with Exchange 2013 but was running on our Exchange 2007 server.  After uninstalling the update and rebooting the server, I was able to re-create the activesync virtual directory and it is working fine.  I hope this information will be helpful to any one else who may be fighting this issue.
0
 

Author Closing Comment

by:hbmonline
ID: 39234126
I am accepting my own solution because with the help of Microsoft support I was able to solve the issue I was having.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now