locked
The service '/Autodiscover/autodiscover.xml' cannot be activated due to an exception during compilation. RRS feed

  • Question

  • I started getting this error after migrating mailboxes from Exchange 2003/Server 2003 Sp2 Std/DC to Exchange 2010 SP1/Server 2008 R2/DC. Outlook Anywhere is configured and I reset the Autodiscover IIS virtual directory. Autoconfig of Outlook fails. Thanks for looking.

    ****************************************

    Log Name:      Application
    Source:        System.ServiceModel 3.0.0.0
    Date:          1/18/2011 10:30:39 PM
    Event ID:      3
    Task Category: WebHost
    Level:         Error
    Keywords:      Classic
    User:          SYSTEM
    Computer:      SERVER05.domain.com
    Description:
    WebHost failed to process a request.
     Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/32001227
     Exception: System.ServiceModel.ServiceActivationException: The service '/Autodiscover/autodiscover.xml' cannot be activated due to an exception during compilation.  The exception message is: This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection.
    Parameter name: item. ---> System.ArgumentException: This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection.
    Parameter name: item
       at System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)
       at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
       at System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)
       at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
       at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
       at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       --- End of inner exception stack trace ---
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
     Process Name: w3wp
     Process ID: 7440

    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="System.ServiceModel 3.0.0.0" />
        <EventID Qualifiers="49154">3</EventID>
        <Level>2</Level>
        <Task>5</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2011-01-19T03:30:39.000000000Z" />
        <EventRecordID>29033</EventRecordID>
        <Channel>Application</Channel>
        <Computer>SERVER05.domain.com</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data>System.ServiceModel.ServiceHostingEnvironment+HostingManager/32001227</Data>
        <Data>System.ServiceModel.ServiceActivationException: The service '/Autodiscover/autodiscover.xml' cannot be activated due to an exception during compilation.  The exception message is: This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection.
    Parameter name: item. ---&gt; System.ArgumentException: This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection.
    Parameter name: item
       at System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)
       at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
       at System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)
       at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
       at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
       at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       --- End of inner exception stack trace ---
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)</Data>
        <Data>w3wp</Data>
        <Data>7440</Data>
      </EventData>
    </Event>

    ********************************************************


    Clark
    Wednesday, January 19, 2011 4:01 AM

Answers

  • keep the first and third one only and remove others
    MCP, MCSE 2000 , MCSA 2000 ,MCSA 2003 , MCITP , MCTS , MCT
    • Marked as answer by Manlytrash Wednesday, January 19, 2011 7:18 PM
    Wednesday, January 19, 2011 1:48 PM

All replies

  • I guess this is due to more than one binding are configured in your IIS server.
    MCP, MCSE 2000 , MCSA 2000 ,MCSA 2003 , MCITP , MCTS , MCT
    Wednesday, January 19, 2011 7:36 AM
  • What bindings should I have? I currently have these in the default website.

    Type: https - Hostname: blank - Port: 443 - IP: *

    Type: http - Hostname: mail.domain.com - Port: 80 - IP: *

    Type: http - Hostname: blank - Port: 80 - IP: *

    Type: http - Hostname: blank - Port:  - IP: 127.0.0.1

    Type: https - Hostname: blank - Port: 443 - IP: 127.0.0.1


    Clark
    Wednesday, January 19, 2011 12:48 PM
  • keep the first and third one only and remove others
    MCP, MCSE 2000 , MCSA 2000 ,MCSA 2003 , MCITP , MCTS , MCT
    • Marked as answer by Manlytrash Wednesday, January 19, 2011 7:18 PM
    Wednesday, January 19, 2011 1:48 PM
  • Any Updates?
    MCP, MCSE 2000 , MCSA 2000 ,MCSA 2003 , MCITP , MCTS , MCT
    Wednesday, January 19, 2011 6:59 PM
  • I kept the first and second and the errors went away. On another note, I wasn't able to delete email from OWA and ECP would not display mailboxes either. After removing all the other bindings and restarting IIS the errors have gone away and I can delete/move emails from OWA. Thanks!
    Clark
    Wednesday, January 19, 2011 7:17 PM
  • I am having this very same problem.  Autoconfigure is failing, can't delete emails in OWA, and out of office assistant says the server is unavailable.

    I applied these recommended bindings to no avail.

    Any other ideas?

    Thursday, January 17, 2013 6:55 PM
  • Here's the error event log:

    WebHost failed to process a request.

    Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/32001227

    Exception: System.ServiceModel.ServiceActivationException: The service '/Autodiscover/Autodiscover.xml' cannot be activated due to an exception during compilation.  The exception message is: Method not found: 'System.String System.ServiceModel.Activation.Iis7Helper.ExtendedProtectionDotlessSpnNotEnabledThrowHelper(System.Object)'.. ---> System.MissingMethodException: Method not found: 'System.String System.ServiceModel.Activation.Iis7Helper.ExtendedProtectionDotlessSpnNotEnabledThrowHelper(System.Object)'.

       at System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.WebConfigurationManagerWrapper.BuildExtendedProtectionPolicy(ExtendedProtectionTokenChecking tokenChecking, ExtendedProtectionFlags flags, List`1 spnList)

       at System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.WebConfigurationManagerWrapper.GetExtendedProtectionPolicy(ConfigurationElement element)

       at System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.ProcessWindowsAuthentication(String siteName, String virtualPath, HostedServiceTransportSettings& transportSettings)

       at System.ServiceModel.WasHosting.MetabaseSettingsIis7V2.CreateTransportSettings(String relativeVirtualPath)

       at System.ServiceModel.Activation.MetabaseSettingsIis.GetTransportSettings(String virtualPath)

       at System.ServiceModel.Activation.MetabaseSettingsIis.GetAuthenticationSchemes(String virtualPath)

       at System.ServiceModel.Channels.HttpChannelListener.ApplyHostedContext(VirtualPathExtension virtualPathExtension, Boolean isMetadataListener)

       at System.ServiceModel.Channels.HttpsChannelListener.ApplyHostedContext(VirtualPathExtension virtualPathExtension, Boolean isMetadataListener)

       at System.ServiceModel.Channels.HttpsTransportBindingElement.BuildChannelListener[TChannel](BindingContext context)

       at System.ServiceModel.Channels.BindingContext.BuildInnerChannelListener[TChannel]()

       at System.ServiceModel.Channels.BindingElement.BuildChannelListener[TChannel](BindingContext context)

       at Microsoft.Exchange.Autodiscover.WCF.LegacyMessageEncoderBindingElement.BuildChannelListener[TChannel](BindingContext context)

       at System.ServiceModel.Channels.BindingContext.BuildInnerChannelListener[TChannel]()

       at System.ServiceModel.Channels.Binding.BuildChannelListener[TChannel](Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode listenUriMode, BindingParameterCollection parameters)

       at System.ServiceModel.Description.DispatcherBuilder.MaybeCreateListener(Boolean actuallyCreate, Type[] supportedChannels, Binding binding, BindingParameterCollection parameters, Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode listenUriMode, ServiceThrottle throttle, IChannelListener& result, Boolean supportContextSession)

       at System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode listenUriMode, Boolean supportContextSession, IChannelListener& result)

       at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)

       at System.ServiceModel.ServiceHostBase.InitializeRuntime()

       at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)

       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)

       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

       --- End of inner exception stack trace ---

       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

       at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)

    Process Name: w3wp

    Process ID: 5424

    Thursday, January 17, 2013 6:56 PM
  • Check the binding's in IIS for the default website. It all stemmed from that from what I can remember. This is what mine looks like. You should also restart IIS after making any changes. There is also a GUI tool in EMC to reset all the virtual directories to the defaults of what Exchange wants to see. Hope this helps.

    Type: https -  Hostname: blank -  Port:443 -  IP Address: *

    Type: http  - Hostname: blank - Port 80 - IP Address: *

    Type: http  - Hostname: blank - Port 80 - IP Address: 127.0.0.1

    Type: https -  Hostname: blank -  Port:443 -  IP Address: 127.0.0.1

    Type: net.tcp -  Hostname: blank -  Port: blank -  IP Address: blank -  Binding Info: 808:*

    Type: net.pipe -  Hostname: blank -  Port: blank -  IP Address: blank -  Binding Info: *


    Clark

    Thursday, January 17, 2013 7:14 PM
  • I was missing *:80 on mine. It seems as if Sharepoint snagged it, I just assigned a host name to Sharepoint and removed the wild card and re-added the wild card back to the Default Web Site that contained the autodiscovery VD. Thanks!
    Tuesday, February 19, 2013 2:52 PM
  • I did as descriped by you, and it worked perfect

    Thank you. :-)

    Tuesday, May 23, 2017 4:57 PM
  • I've been fighting with this for months, deleting the incorrect bindings sorted it for me.

    Many thanks

    Monday, October 30, 2017 3:19 AM