hbmonline
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-activesyncvirtualdirec tory : An error occurred while creating the IIS
virtual directory
'IIS://servername.domain.l ocal/W3SVC /3/ROOT/Mi crosoft-Se rver-Activ eSync' on
'servername'.
At line:1 char:1
+ new-activesyncvirtualdirec tory -websitename "SBS Web Applications"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (JTSSBS\Microsof...b Applicati
ons):ADObjectId) [New-ActiveSyncVirtualDire ctory], InvalidOperationExcepti
on
+ FullyQualifiedErrorId : 50A0BD64,Microsoft.Exchang e.Manageme nt.SystemC on
figurationTasks.NewMobileS yncVirtual Directory
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.
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-activesyncvirtualdirec
virtual directory
'IIS://servername.domain.l
'servername'.
At line:1 char:1
+ new-activesyncvirtualdirec
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (JTSSBS\Microsof...b Applicati
ons):ADObjectId) [New-ActiveSyncVirtualDire
on
+ FullyQualifiedErrorId : 50A0BD64,Microsoft.Exchang
figurationTasks.NewMobileS
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.
this may sound a bit off but you know that active sync service doesn't start by default ; you have to manually start it .
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
https://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/A_1798-Exchange-2003-Activesync-Connection-Problems-FAQ.html
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.
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-ActiveSyncVirtualDirec tory -WebSiteName "Contoso.com"
Could be that , cause you are getting an error that complains about fully qualified domain name .
New-ActiveSyncVirtualDirec
Could be that , cause you are getting an error that complains about fully qualified domain name .
ASKER
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 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..
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-ActiveSyncVirtualDirec tory
is it returning empty ?
did you try the full syntax for creating it ?
New-ActiveSyncVirtualDirec tory -WebsiteName "SBS Web Applications" -InternalUrl "https://Sites/Microsoft-Server-ActiveSync" -ExternalAuthenticationMet hods Basic -InternalAuthenticationMet hods Basic
what do you see in windows application logs ?
Get-ActiveSyncVirtualDirec
is it returning empty ?
did you try the full syntax for creating it ?
New-ActiveSyncVirtualDirec
what do you see in windows application logs ?
ASKER
get-activesyncvirtualdirec tory 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.
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-ActiveSyncVirtualDirec tory alone without any parameters .
do you get the same message ?Is this the full error message ? anything more ?
do you get the same message ?Is this the full error message ? anything more ?
ASKER
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.
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/
http://www.outlookforums.com/threads/73412-exchange-2010-activesync-broken-how-fix/
ASKER
The Microsoft-Server-Activesyn c is not existent in IIS after I initially removed the directory using the remove-activesyncvirtualdi rectory command (which was successful).
I'm still unable to get the new-activesyncvirtualdirec tory command to work regardless of the arguments used. To ensure I was using the proper syntax I ran the command "get-help new-activesyncvirtualdirec tory" 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-activesyncvirtualdirec tory 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-activesyncvirtualdirec tory it returns blank and remove-activesyncvirtualdi rectory 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.
I'm still unable to get the new-activesyncvirtualdirec
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-activesyncvirtualdirec
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.
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am accepting my own solution because with the help of Microsoft support I was able to solve the issue I was having.