locked
Cannot recreate any exchange 2007 virtual directories on 2008 RRS feed

  • Question

  • Exchange 2007 SP2 on 2008 SBS. Managed by someone else previously, realized there is no EWS directory which is effecting a bes issue. When i try to create, I get the following error:

     

    [PS] C:\Windows\system32>New-WebServicesVirtualDirectory -WebSiteName "SBS Web A

    pplications" -BasicAuthentication:$true -WindowsAuthentication:$true

    New-WebServicesVirtualDirectory : An error occurred while creating the IIS virt

    ual directory 'IIS://SBS.company.local/W3SVC/3/ROOT/EWS' on 'SBS'.

    At line:1 char:32

    + New-WebServicesVirtualDirectory <<<<  -WebSiteName "SBS Web Applications" -Ba

    sicAuthentication:$true -WindowsAuthentication:$true

        + CategoryInfo          : InvalidOperation: (SBS\EWS (SBS Web Applicat

       ions):ADObjectId) [New-WebServicesVirtualDirectory], InvalidOperationExcep

      tion

        + FullyQualifiedErrorId : A6C99929,Microsoft.Exchange.Management.SystemCon

       figurationTasks.NewWebServicesVirtualDirectory



    If I try creating an OWA or autodiscover directory on another site on same server, same error output.

    Server has been rebooted several times, all windows updates besides exch07 SP3 have been applied.

    All existing virtual directories work fine.

    Thanks.

     

     

     

    Wednesday, March 16, 2011 2:11 PM

Answers

  • Hi,

     

     

    Could you please try to Open the applicationhost.config as an administrator and manually delete the EWS application?

    You can find the file via this path: C:\Windows\System32\inetsrv\config\applicationhost.config

     

     

    <sites>
    <site name="Default Web Site" id="1" serverAutoStart="true">
    <application path="/">
    <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />
    <virtualDirectory path="/Selfupdate" physicalPath="C:\Program Files\Update Services\Selfupdate" />
    <virtualDirectory path="/ClientWebService" physicalPath="C:\Program Files\Update Services\webservices\ClientWebServiceM5" />
    </application>
    <application path="/EWS/bin" applicationPool="MSExchangeServicesAppPool">
    <virtualDirectory path="/" physicalPath="C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\EWS\bin" />
    </application>

    You need to delete this section:

    <application path="/EWS/bin" applicationPool="MSExchangeServicesAppPool">
    <virtualDirectory path="/" physicalPath="C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\EWS\bin" />
    </application>

    Perform an iisreset/noforce and create your new EWS virtual directory on your default website 

     

    You could also try to create EWS virtual directory manually in IIS. It shoud point to the folder

    C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\ews 

     

     

     This forum is for exchange related issues. For questions about SBS, please use the “SBS 2008” which would be the most relevant forum for your question.

    2008: https://connect.microsoft.com/sbs08/community/discussion/richui/default.aspx?wa=wsignin1.0

    http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/threads

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading t
    • Marked as answer by emma.yoyo Monday, March 28, 2011 10:07 AM
    Friday, March 18, 2011 5:18 AM

All replies

  • found solution at http://social.technet.microsoft.com/Forums/en-US/exchangesvrclients/thread/9f23fe1c-ca24-4abf-b880-5517d20b6211

     

    running the following fixed it:

     cscript c:\inetpub\adminscripts\adsutil.vbs SET /w3svc/AppPools/Enable32BitAppOnWin64 False

     


    Wednesday, March 16, 2011 2:15 PM
  • Hi,

     

     

    Could you please try to Open the applicationhost.config as an administrator and manually delete the EWS application?

    You can find the file via this path: C:\Windows\System32\inetsrv\config\applicationhost.config

     

     

    <sites>
    <site name="Default Web Site" id="1" serverAutoStart="true">
    <application path="/">
    <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />
    <virtualDirectory path="/Selfupdate" physicalPath="C:\Program Files\Update Services\Selfupdate" />
    <virtualDirectory path="/ClientWebService" physicalPath="C:\Program Files\Update Services\webservices\ClientWebServiceM5" />
    </application>
    <application path="/EWS/bin" applicationPool="MSExchangeServicesAppPool">
    <virtualDirectory path="/" physicalPath="C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\EWS\bin" />
    </application>

    You need to delete this section:

    <application path="/EWS/bin" applicationPool="MSExchangeServicesAppPool">
    <virtualDirectory path="/" physicalPath="C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\EWS\bin" />
    </application>

    Perform an iisreset/noforce and create your new EWS virtual directory on your default website 

     

    You could also try to create EWS virtual directory manually in IIS. It shoud point to the folder

    C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\ews 

     

     

     This forum is for exchange related issues. For questions about SBS, please use the “SBS 2008” which would be the most relevant forum for your question.

    2008: https://connect.microsoft.com/sbs08/community/discussion/richui/default.aspx?wa=wsignin1.0

    http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/threads

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading t
    • Marked as answer by emma.yoyo Monday, March 28, 2011 10:07 AM
    Friday, March 18, 2011 5:18 AM