Autodiscover virtual directory error stops Exchange 2010 SP1 install

I am attmpting to install Exchange 2010 SP1 on a Windows 2008 SP2 server (evaluation version).

Domain controller is W2K3 SP2

Forest Functional Level is Windows 2003

No preexisting Exchange servers / infrastructure need to be taken into consideration. Everything was built from scratch (nothing before, brand new setup).

The only thing that might be original in my setup is that when I installed .NET 3.5 SP1, Office 2010 Filter pack and PS/WinRM 2.0, I also installed the Exchange patches as well (this was before running ServerManagerCMD -ip Exchange-Typical.xml).

Otherwise, pre-checks were OK.

Even so, installation of the CAS role fails with the error below. Since this is a brand new install, I can't imagine how the vdir got there (if the error message is indeed accurate).

Thank you in advance for any suggestions.

--------------------------

The following error was generated when "$error.Clear();
 new-AutodiscoverVirtualDirectory -DomainController $RoleDomainController -WSSecurityAuthentication:$true

" was run: "The Active Directory object for virtual directory 'IIS://EX10.OTHER.LAN/W3SVC/1/ROOT/Autodiscover' on 'EX10' could not be created. This might be because the object already exists in Active Directory. Remove the object from Active Directory, then re-create it.".

The Active Directory object for virtual directory 'IIS://EX10.OTHER.LAN/W3SVC/1/ROOT/Autodiscover' on 'EX10' could not be created. This might be because the object already exists in Active Directory. Remove the object from Active Directory, then re-create it.

April 16th, 2011 11:29am

run get-WebServicesVirtualDirectory. This will list the directories registered in AD. If you find one you should remove it with remove-WebServicesVirtualDirectory.

http://technet.microsoft.com/en-us/library/aa998810.aspx

http://technet.microsoft.com/en-us/library/bb124231.aspx

Free Windows Admin Tool Kit Click here and download it now
April 16th, 2011 1:52pm

Since I could not even open the EMC (I do realize the cmdlets you suggest are entered in the EMS), I reverted to a previous snapshot and am trying again). (Right, I only use snapshots with Exchange in practice) I will report back, soon I hope.
April 16th, 2011 4:06pm

get-webservices.. Etc is not a recognized command. So the Exchange extensions were never successfully installed. In IIS, virtual directories are installed, except for autodiscover. Exchange setup log shows in greater detail what I have already posted. Whoami /groups shows that I am enterprise, schema and domain adnin.
Free Windows Admin Tool Kit Click here and download it now
April 16th, 2011 5:09pm

After this happened for the second time, I simply rebuilt the Exchange server and was able to install Exchange without a problem. Only difference the other way was installing the patches right away, with .NET and PS 2.0 (etc), even before the server was joined to the domain, and any of the roles and features installed. I also made sure to "Run As" admin every time that was an option.
April 17th, 2011 1:05am

Hello,

 

The Autodiscover settings are present in AD and IIS metabase. We can check the following three points:

 

1. Open IIS manager and remove the autodiscover VD

 

2. Remove the autodiscover objects in AD

 

    a. Open ADSIEDIT.msc, locate: 

 

        Configuration-->CN=Services-->CN=Microsoft Exchange-->CN=Organization-->CN=Administrative Groups-->CN=Exchange Administrative Groups-->CN=Servers-->CN=Exchange-->CN=Protocols-->CN=HTTP

 

    b. In the right pane, please check whether the CN=Autodiscover (Default Web Site) is present. If so, please remove it.

 

3. Delete the autodsicover in metabase

 

   a. Download the IIS 6.0 Resource Kit Tools from the following link:

 

       http://www.microsoft.com/downloads/en/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en

 

      Note: Although the tool was released for IIS 6.0, it also compatible with IIS 7.0 in your environment.

 

   b. Install it on the CAS server. Open the “Metabase Explorer”

   c. Locate: Exchange -> LM -> W3SVC -> 1 -> ROOT.

   d. Please check whether Autodiscover is present, if so, remove it.

 

Thanks,

Simon

Free Windows Admin Tool Kit Click here and download it now
April 19th, 2011 5:52am

Hi all,

i actually have the same problem as Le Pirvert.

My problem is as following:
Windows Server 2008, R2 + Exchange Server 2010.

I habe some problem with my Autodiscover and i tried to delete the wohle thing and bring it up again.


After a             Remove-AutodiscoverVirtualDirectory -Identity "server\Autodiscover (Default Web Site)"
Returncode is: The operation couldn't be performed because object 'exchange ***\autodiscover' couldn't be found on 'DomainController*****'."
Wondering, because the Autodiscover directory is inside the IIS.

As next, i used the Metabase Explorer as Simon_WU wrote- i deletet the entry as well as the entry inside adsiedit and the object from the IIS itself.

After i have done all of these things, i tried again a: New-AutodiscoverVirtualDirectory

Returncode is still:
The Active Directory object for virtual directory 'IIS://server/W3SVC/1/ROOT/Autodiscover' on 'server' cou
ld not be created. This might be because the object already exists in Active Directory. Remove the object from Active D
irectory, then re-create it.
    + CategoryInfo          : InvalidOperation: (server\Autodiscover (Default Web Site):ADObjectId) [New-AutodiscoverV
   irtualDirectory], InvalidOperationException
    + FullyQualifiedErrorId : 65346D57,Microsoft.Exchange.Management.SystemConfigurationTasks.NewAutodiscoverVirtualDi
   rectory

I´am working on this damn problem now for 3 days and i don`t get any further ;-(

 

 

August 5th, 2011 8:45am

Hi all,

i actually have the same problem as Le Pirvert.

My problem is as following:
Windows Server 2008, R2 + Exchange Server 2010.

I habe some problem with my Autodiscover and i tried to delete the wohle thing and bring it up again.


After a             Remove-AutodiscoverVirtualDirectory -Identity "server\Autodiscover (Default Web Site)"
Returncode is: The operation couldn't be performed because object 'exchange ***\autodiscover' couldn't be found on 'DomainController*****'."
Wondering, because the Autodiscover directory is inside the IIS.

As next, i used the Metabase Explorer as Simon_WU wrote- i deletet the entry as well as the entry inside adsiedit and the object from the IIS itself.

After i have done all of these things, i tried again a: New-AutodiscoverVirtualDirectory

Returncode is still:
The Active Directory object for virtual directory 'IIS://server/W3SVC/1/ROOT/Autodiscover' on 'server' cou
ld not be created. This might be because the object already exists in Active Directory. Remove the object from Active D
irectory, then re-create it.
    + CategoryInfo          : InvalidOperation: (server\Autodiscover (Default Web Site):ADObjectId) [New-AutodiscoverV
   irtualDirectory], InvalidOperationException
    + FullyQualifiedErrorId : 65346D57,Microsoft.Exchange.Management.SystemConfigurationTasks.NewAutodiscoverVirtualDi
   rectory

I´am working on this damn problem now for 3 days and i don`t get any further ;-(

 

 

Any luck with this SukRam23? I have the exact same problem. Remove autodiscover virtual directory with remove-AutodiscoverVirtualDirectory cmdlet and go to add it back get same error as above. Windows 2008 R2, Exchange 2010.
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2011 8:23pm

Hello,

 

The Autodiscover settings are present in AD and IIS metabase. We can check the following three points:

 

1. Open IIS manager and remove the autodiscover VD

 

2. Remove the autodiscover objects in AD

 

    a. Open ADSIEDIT.msc, locate: 

 

        Configuration-->CN=Services-->CN=Microsoft Exchange-->CN=Organization-->CN=Administrative Groups-->CN=Exchange Administrative Groups-->CN=Servers-->CN=Exchange-->CN=Protocols-->CN=HTTP

 

    b. In the right pane, please check whether the CN=Autodiscover (Default Web Site) is present. If so, please remove it.

 

3. Delete the autodsicover in metabase

 

   a. Download the IIS 6.0 Resource Kit Tools from the following link:

 

       http://www.microsoft.com/downloads/en/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en

 

      Note: Although the tool was released for IIS 6.0, it also compatible with IIS 7.0 in your environment.

 

   b. Install it on the CAS server. Open the Metabase Explorer

   c. Locate: Exchange -> LM -> W3SVC -> 1 -> ROOT.

   d. Please check whether Autodiscover is present, if so, remove it.

 

Thanks,

Simon

I have same problem, Autodiscover neither exists in AD nor in IIS metabase, but I still receive the mentioned error.
June 23rd, 2013 9:18am

Hello Everyone, I'm having the same problem as the folks above. I've attempted to rebuild the EWS virtual directory and after proceeding through the clean up instructions as indicated I also receive:

The Active Directory object for virtual directory IIS://Server/W3SVC/1/ROOT/EWS This might be because the object already exists in Active Directory

Does anyone have any idea how to fix?  I'm stuck at this point.

Thanks

Chris

Free Windows Admin Tool Kit Click here and download it now
December 27th, 2013 12:24am

Hey, the cause for my problem was as described in this post:

"Ok.... I had a host header in the site bindings for the default web site in IIS. Not sure why or how that got there. Removing that, run iisreset from cmd prompt and it's now working again."

http://www.edugeek.net/forums/windows-server-2008-r2/61512-ex2010-sp1-has-broken-owa.html



  • Edited by Aurimas N Friday, December 27, 2013 1:25 AM
December 27th, 2013 1:24am

Thanks for the response. I checked for the host header and it was blank.

Searching around on the internet is not yielding many results I haven't already tried:

-Make sure Active Directory EWS entry in AG/Server/Protocols/HTTP/EWS is removed
-Make sure IIS does not show the EWS directory.  Confirmed with Metabase explorer and applicationHost.config
-I do not see a application pool for EWS.  (I think the default is MSExchangeServices or something similar to that)
-I did a dump of AD and searched for W3SVC as indicated in by the message and got nothing
-Tried removing the old EWS directory
-Recreated the IIS EWS virtual directory and removed it

I initially started doing this because of this error .NET error generated from the EWS directory:
"Exception message: Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

I'm open to any other ideas.

I do have a 2 node CAS and the other CAS server still has EWS configured.  But it is also generating the .NET error.

The only thing I have not yet tried is reinstalling the CAS but trying to avoid doing so.

Thanks

Chris 

  • Proposed as answer by ChrisNEC Saturday, December 28, 2013 1:33 PM
  • Unproposed as answer by ChrisNEC Saturday, December 28, 2013 1:33 PM
Free Windows Admin Tool Kit Click here and download it now
December 27th, 2013 1:56am

FYI, I performed a manual rebuild as this individual did and EWS is back up and running.  It would still be nice to know what the error actually meant and what the appropriate fix would had been because I saw many people having this same issue and most of the people resolved their issues re-installing the CAS.

http://social.technet.microsoft.com/Forums/exchange/en-US/214932bf-e5ae-4196-8bb8-79a456bc1d10/rebuild-the-ews-virt-directory?forum=exchangesvrclientslegacy

Thanks

Chris

  • Proposed as answer by ChrisNEC Saturday, December 28, 2013 1:36 PM
December 28th, 2013 1:36pm

I did all the steps that were described on this page, and still not working. I remove the Autodiscover key from ADSIEDIT, but when i run the new-AutodiscoverVirtualDirectory command from EMS it says it already exists in AD. I also checked the metabase explorer, there is no Autodiscover entry there. What else can i try?
Free Windows Admin Tool Kit Click here and download it now
August 20th, 2015 2:21am

I did all the steps that were described on this page, and still not working. I remove the Autodiscover key from ADSIEDIT, but when i run the new-AutodiscoverVirtualDirectory command from EMS it says it already exists in AD. I also checked the metabase explorer, there is no Autodiscover entry there. What else can i try?

Not sure which "page" you are referring to, have you tried this?

"Ok.... I had a host header in the site bindings for the default web site in IIS. Not sure why or how that got there. Removing that, run iisreset from cmd prompt and it's now working again."

http://www.edugeek.net/forums/windows-server-2008-r2/61512-ex2010-sp1-has-broken-owa.html


August 20th, 2015 3:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics