Solved

SBS2008 Activesync doesn't work

Posted on 2013-01-30
10
827 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a Shared Mailbox 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 >> Sha…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

757 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

22 Experts available now in Live!

Get 1:1 Help Now