[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

failure recreating ActiveSync Virtual Directory (Exchange 2010 SP1)

Posted on 2011-09-05
12
Medium Priority
?
3,540 Views
Last Modified: 2012-05-12
Originally, based on MS direction, I tried recreating the ActiveSync VD in EMS by running:

=>Remove-ActiveSyncVirtualDirectory –id “CASServer\Microsoft-Server-ActiveSync (Default Web Site)”
=>IISRest
=>New-ActiveSyncVirtualDirectory
=>IISReset

Failed !

Situation now:
1)  In EMC> Server Configuration>Client Access>Exchange ActiveSync tab, there is no entry now.
2)  In EMS> If I try the "Remove" string again, I get the following failure message:
The operation could not be performed because object “CASServer\Microsoft-Server-ActiveSync (Default Web Site)” could not be found on 'CASServer.mydomain.org'.
3)  In IIS 7.5 Manager, I verified that no Virtual Directory exists for the application "Microsoft-Server-ActiveSync"
4)  In EMS> I ran the cmdlet "New-ActiveSyncVirtualDirectory".  Error message:
The virtual directory 'Microsoft-Server-ActiveSync' already exists under 'CASServer.mydomain.org/Default Web Site'.

How do I correct this situation ?
Thanks, Mike


0
Comment
Question by:MikeH392
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 49

Expert Comment

by:Akhater
ID: 36486001
Hi Mike,

how many cas servers do you have ?

please run get-ActiveSyncVirtualDirectory what is the result ?
0
 

Author Comment

by:MikeH392
ID: 36486028
Hi Akhater,
=> There is only one Exchange 2010 SP1 server in the domain, hosted on-site.  There are no other email servers (regardless of roles) connected.
=> in EMS, I ran  'Get-ActiveSyncVirtualDirectory', and receive a carriage return effect. = no results & no errors
Thanks - Mike
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36486050
what if you run

New-ActiveSyncVirtualDirectory -WebSiteName "Default Web Site"

you are still getting the same error ?
0
Industry Leaders: 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!

 

Author Comment

by:MikeH392
ID: 36486092
Tried that before.  I get the same error messages running that too.
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36486129
i am sorry but did you run iis reset after removing the active sync directory ?

if not please try
0
 

Author Comment

by:MikeH392
ID: 36486152
Akhater,
In my initial post, I documented that I was running "iisreset" after the remove and new cmdlets.

I have been trying other things in IIS 7.5 Manager, and I routinely run iisreset after each change.
I tried to manually create a new VD in IIS Manager, ran iisreset, so that I could try the  remove then new commands.  Still no luck.

This is beyond the normal documented answers from MS.  I have been reviewing the various Logs (App, Sys, IIS, etc) looking for some sliver of a hint of what is wrong.  FYI:  I am logged in to the exchange server, using the Domain Administrator.

Thanks, Mike
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36486196
Yea right I didn't notice that in the Original Post sorry ! no need to get angry

Your issue is that the IIS metabase is not updated, I am just trying a more "soft approach" as a start


please run from powershell (on the exchange server)
$Site = [ADSI]"IIS://localhost/W3SVC/1/Root/Microsoft-Server-ActiveSync"

and then run $site

what is the result
0
 

Author Comment

by:MikeH392
ID: 36486211
hey Akhater ... I'm not "angry" or upset ???

In EmS,
=> Ran "$Site = [ADSI]"IIS://localhost/W3SVC/1/Root/Microsoft-Server-ActiveSync""
Result:  Carriage return.
=> Ran "$site"
Result:  
  distinguishedName:  
Path:  {C:\Program Files\Microsoft\Exchange Server\V14\Client Access\Sync}

I appreciate your effort.
Thanks, Mike
0
 
LVL 49

Accepted Solution

by:
Akhater earned 2000 total points
ID: 36486247
well the good thing is that we are able to see it now we need to delete it

$Site = [ADSI]"IIS://localhost/W3SVC/1/Root"
$site.Delete("IIsWebVirtualDir","Microsoft-Server-ActiveSync")
$site.SetInfo()


please note that the above is directly editing the IIS metabase so use it as your own risk, this being said I have tested it for you on m y lab and it worked
0
 

Author Comment

by:MikeH392
ID: 36486303
Akhater,
Got a good carriage return after each command.

=> I then ran iisreset
=> I checked IIS Manager, and the Microsdt-Server-ActiveSync is now gone, and the application is still there.
=> I ran the EMS command:  'New-ActiveSyncVirtualDirectory -WebSiteName "Default Web Site" '
Results:  Successfully recreated.
=> ran iisreset
= Checked IIS Manager 7.5, and the ActiveSync is recreated
= Checked the EMC, and the Exchange ActiveSync (under Server COnfig, Client Access) is recreated.  I added the External URL.

Akhater,  Thank you so very much for getting me to this successful point !!
Obviously, I now have to do some additional configs on authentication, security, etc... and then test with the testexchangeconnectivity.com site.

Do you have any additional advice or comments ?
Thanks, Mike

0
 
LVL 49

Expert Comment

by:Akhater
ID: 36486310
typically you do not need to change any authentication or security the powershell command should do all that for you (default values) you just need to assign the external and internal url
0
 

Author Comment

by:MikeH392
ID: 36486453
Akhater,
I was responding to you earlier, when the esperts-exchange web site went off line for a couple of hours.
Bottom line:  I did have to make 1 authentication change (disable Anonymous) and the testexchangeconnectivity.com tests (several with different user ids) work perfect.  Over the next couple of days, I will be working with the iPhone and Android users.

Thank you so much.  Mike
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
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…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
Suggested Courses

656 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