Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 842
  • Last Modified:

SBS2008 Activesync doesn't work

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
matarvai
Asked:
matarvai
  • 5
  • 5
2 Solutions
 
Cliff GaliherCommented:
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
 
matarvaiAuthor Commented:
So I need to remove all from Default Web Site and recreate them on the SBS Web Applications site?
0
 
Cliff GaliherCommented:
Correct.
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
Cliff GaliherCommented:
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
 
matarvaiAuthor Commented:
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
 
Cliff GaliherCommented:
Stop the W3svc service first, then retry.
0
 
matarvaiAuthor Commented:
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
 
Cliff GaliherCommented:
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
 
matarvaiAuthor Commented:
Thanks cgaliher, this helped. Now we have all the virtualdirectories on the same site. Will test activesync after reboot
0
 
matarvaiAuthor Commented:
Activesync worked. Thank You!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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