Link to home
Start Free TrialLog in
Avatar of hbmonline
hbmonlineFlag for United States of America

asked on

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.
Avatar of akhalighi
akhalighi
Flag of Canada image

this may sound a bit off but you know that active sync service doesn't start by default ; you have to manually start it .
Avatar of jerseysam
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:

https://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/A_1798-Exchange-2003-Activesync-Connection-Problems-FAQ.html
Avatar of hbmonline

ASKER

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.
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 .
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.
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..
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 ?
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.
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 ?
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.
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/
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.
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.
ASKER CERTIFIED SOLUTION
Avatar of hbmonline
hbmonline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am accepting my own solution because with the help of Microsoft support I was able to solve the issue I was having.