Solved

SBS2008 Activesync doesn't work

Posted on 2013-01-30
10
828 Views
Last Modified: 2013-01-31
We have a strange problem on one SBS2008 server. Customer just started to allow Activesync connections to server. Installed GoDaddy certificate, Webmail started to work without an issue but Activesync doesn't work.

We found strange configuration on this SBS on IIS. Some of the Exchange components are below Default Web Site, and others are on SBS Web Applications. Usually all the components are on the same site.

Any idea how to fix Acticesync so mobile devices will work? And can the strange IIS config cause this issue?
Strange-IIS.JPG
0
Comment
Question by:matarvai
  • 5
  • 5
10 Comments
 
LVL 56

Accepted Solution

by:
Cliff Galiher earned 500 total points
ID: 38838423
yes, having those all split up will definitely cause issues. Looks like someone attempted a repair in the past and used a non-SBS guide which, of course, created things improperly.

You'll need to use the various powershell commands to remove then recreate the virtual directories in the proper site. For example, there is a remove-oabvirtualdirectory command and a new-oabvortualdirectory command to help you remove and create that vdir.

As always, have a backup before doing any destructive command.

http://technet.microsoft.com/en-us/library/bb123703(v=exchg.80).aspx
0
 

Author Comment

by:matarvai
ID: 38838449
So I need to remove all from Default Web Site and recreate them on the SBS Web Applications site?
0
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 38838453
Correct.
0
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 38838457
And do so using the exchange powershell commands. Don't just delete them from within IIS. The powershell cmdlets also update the appropriate registry settings in the background for exchange, which the IIS GUI will not do...leaving a mess.
0
 

Author Comment

by:matarvai
ID: 38838853
Removal worked without an issue.

Trying to add again gives me an error

New-AutodiscoverVirtualDirectory : An error occurred while creating the IIS vir
tual directory 'IIS://servername/W3SVC/3/ROOT/Autodiscover' on 'servername'.
At line:1 char:33
+ New-AutodiscoverVirtualDirectory <<<<  -WebsiteName "SBS Web Applications" -I
nternalUrl "https://servername/Autodiscover/Autodiscover.xml" -BasicAuthen
tication 1 -WindowsAuthentication 1
    + CategoryInfo          : InvalidOperation: (servername\Autod...b Applicati
   ons):ADObjectId) [New-AutodiscoverVirtualDirectory], InvalidOperationExcep
  tion
    + FullyQualifiedErrorId : 515D158,Microsoft.Exchange.Management.SystemConf
   igurationTasks.NewAutodiscoverVirtualDirectory
0
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 38838871
Stop the W3svc service first, then retry.
0
 

Author Comment

by:matarvai
ID: 38838877
Tried stopping the W3svc service

Run command
New-AutodiscoverVirtualDirectory -WebsiteName "SBS Web Applications" -InternalUrl "https://servername/Autodiscover/Autodiscover.xml" -BasicAuthentication 1 -WindowsAuthentication 1

same error
0
 
LVL 56

Assisted Solution

by:Cliff Galiher
Cliff Galiher earned 500 total points
ID: 38838881
Check the applicationhost.config file and look for remnants. Since the autodiscover directory should not have been in the default web site in the first place, chances are however it got there left old entries from its former existence in sbs webapps, so the command sees this as an attempt to create a duplicate.
0
 

Author Comment

by:matarvai
ID: 38838924
Thanks cgaliher, this helped. Now we have all the virtualdirectories on the same site. Will test activesync after reboot
0
 

Author Comment

by:matarvai
ID: 38839103
Activesync worked. Thank You!
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
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 …

896 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