none
Exchange 2010 - The service '/EWS/Exchange.asmx' cannot be activated due to an exception during compilation.

    Question

  • When I try and and delete anything in my mailbox using OWA I get an "An Unexpected Error occured and your requeste couldn't be handled".

     

    Upon looking in the event log I find the following:

     

    Log Name:      Application
    Source:        System.ServiceModel 3.0.0.0
    Date:          21/09/2010 18:10:00
    Event ID:      3
    Task Category: WebHost
    Level:         Error
    Keywords:      Classic
    User:          SYSTEM
    Computer:      exchange2010.nameremoved.co.uk

    Description:
    WebHost failed to process a request.
     Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/30542218
     Exception: System.ServiceModel.ServiceActivationException: The service '/EWS/Exchange.asmx' cannot be activated due to an exception during compilation.  The exception message is: A binding instance has already been associated to listen URI 'http://exchange2010.dartford.gov.uk/EWS/Exchange.asmx'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config. . ---> System.InvalidOperationException: A binding instance has already been associated to listen URI 'http://exchange2010.dartford.gov.uk/EWS/Exchange.asmx'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config.
       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: 2012

    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="2010-09-21T17:10:00.000000000Z" />
        <EventRecordID>34125</EventRecordID>
        <Channel>Application</Channel>
        <Computer>exchange2010.dartford.gov.uk</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data>System.ServiceModel.ServiceHostingEnvironment+HostingManager/30542218</Data>
        <Data>System.ServiceModel.ServiceActivationException: The service '/EWS/Exchange.asmx' cannot be activated due to an exception during compilation.  The exception message is: A binding instance has already been associated to listen URI 'http://exchange2010.nameremove.co.uk/EWS/Exchange.asmx'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config. . ---&gt; System.InvalidOperationException: A binding instance has already been associated to listen URI 'http://exchange2010.dartford.gov.uk/EWS/Exchange.asmx'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config.
       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)</Data>
        <Data>w3wp</Data>
        <Data>2012</Data>
      </EventData>
    </Event>

     

    I also get this event log error:

     

    Log Name:      Application
    Source:        MSExchange OWA
    Date:          21/09/2010 18:22:05
    Event ID:      108
    Task Category: Configuration
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      exchange2010.nameremoved.co.uk

    Description:
    Outlook Web App couldn't connect Exchange Web Services due to a configuration error. Response code = "500".
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchange OWA" />
        <EventID Qualifiers="49152">108</EventID>
        <Level>2</Level>
        <Task>3</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-09-21T17:22:05.000000000Z" />
        <EventRecordID>34130</EventRecordID>
        <Channel>Application</Channel>
        <Computer>exchange2010.nameremoved.co.uk</Computer>
        <Security />
      </System>
      <EventData>
        <Data>500</Data>
      </EventData>
    </Event>

     

     

    Tuesday, September 21, 2010 5:23 PM

Answers

All replies

  • Hi,

    Is it a hosting Exchange envrionment? If yes, then I recommend you to post the issue in forum for BPOS to get relevant help. You can go the following link to get help.

    http://social.technet.microsoft.com/Forums/en-US/category/microsoftonlineservices

    If not, then I'd like to know if you have two CAS in the network. Do you have additional autodiscover services installed?

    Regards,

    Xiu

    Thursday, September 23, 2010 8:41 AM
  • Hi,

     

    It isn't a hosted service.

     

    We do have 2 exchange servers in our environment. One is a Exchange 2007 (CAS, Hub, MBox) and the new one is Exchange 2010 (HUB, CAS, MBox).

     

    As far as I'm aware we don't have any additional autodiscover services installed.

    Thursday, September 23, 2010 3:10 PM
  • Hi,

    Then please have a look at the article below:

    How to configure a HTTP endpoint for Exchange Web Services in Exchange 2010

    http://blogs.msdn.com/b/dvespa/archive/2009/12/22/how-to-configure-a-http-endpoint-for-exchange-web-services-in-exchange-2010.aspx

    Regards,

    Xiu

    Friday, September 24, 2010 2:19 AM
  • Hi,

    We are planning to purchase the Exchange server online. Before that we need a requirement to access the ews (Exchange web service) to get the mails progammatically. Will it be possible? Any one please help

    Tuesday, February 01, 2011 5:31 AM
  • Have you tried restarting (STOP, START) your ISS Manager, on the server?

    We had the same issue, Everything worked fine and then a process (w3wp.exe) crashed. during the restart of the process something went wrong.

    We restarted the ISS Manager, and all worked fine.

    This implies MAC users (MAC outlook uses web interface to connect with the Exchange Server AND you cannot copy / move mails to folders (on the webinterface). NOR can you delete mails in the webinterface.
    In outlook on PC it all worked fine.

    Thursday, December 06, 2012 10:00 AM
  • I have solved it.

    It is realted with asp.net .

    To resolve the issue, we have follow-up mentioned steps.

    Step1. Stop IIS from IIS Manager.

    Step2. Rename EWS folder to EWS_OLD from mentioned path

    C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files

     

    Step3. Again start IIS, it will create new EWS folder.

     

    Step4. Retry the URL , https://webmail.contoso.com/ews/mrsproxy.svc , now it is working fine.

     

    Step5. Start the Remote Move Request to another forest ( O365), it is working fine.


    Kirpal Singh

    Saturday, July 06, 2013 6:46 AM