• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1504
  • Last Modified:

Exchange 2007 ActiveSync stopped working on SBS 2008

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
hbmonline
Asked:
hbmonline
  • 8
  • 6
1 Solution
 
akhalighiCommented:
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
 
jerseysamCommented:
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
 
hbmonlineAuthor Commented:
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell┬« is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
akhalighiCommented:
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
 
hbmonlineAuthor Commented:
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
 
akhalighiCommented:
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
 
akhalighiCommented:
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
 
hbmonlineAuthor Commented:
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
 
akhalighiCommented:
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
 
hbmonlineAuthor Commented:
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
 
akhalighiCommented:
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
 
hbmonlineAuthor Commented:
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
 
hbmonlineAuthor Commented:
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
 
hbmonlineAuthor Commented:
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
 
hbmonlineAuthor Commented:
I am accepting my own solution because with the help of Microsoft support I was able to solve the issue I was having.
0
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.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now