locked
The request failed with HTTP status 404: Not Found. RRS feed

  • Question

  • [PS] C:\Windows\system32>set-ActiveSyncVirtualDirectory -Identity "CASHUB1\Microsoft-Server-ActiveSync (default Web site)" -BasicAuthEnabled $true
    WARNING: Caution: Because passwords are sent in clear text, you should configure a secure channel (SSL) to encrypt data
     transferred between your mobile clients and this virtual directory.
    WARNING: The cmdlet extension agent with the index 0 has thrown an exception in OnComplete(). The exception is:
    System.Net.WebException: The request failed with HTTP status 404: Not Found.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse
    response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Exchange.SoapWebClient.CustomSoapHttpClientProtocol.<>c__DisplayClass4.<Invoke>b__3()
       at
    Microsoft.Exchange.SoapWebClient.HttpAuthenticator.NetworkServiceHttpAuthenticator.AuthenticateAndExecute[T](SoapHttpCl
    ientProtocol client, AuthenticateAndExecuteHandler`1 handler)
       at Microsoft.Exchange.SoapWebClient.SoapHttpClientAuthenticator.AuthenticateAndExecute[T](SoapHttpClientProtocol
    client, AuthenticateAndExecuteHandler`1 handler)
       at Microsoft.Exchange.SoapWebClient.EWS.ExchangeServiceBinding.FindFolder(FindFolderType FindFolder1)
       at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.EwsMailer.GetAdminAuditLogsFolder(ADUser adUser)
       at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.EwsMailer..ctor(OrganizationId organizationId, ADUser
    adUser, ExchangePrincipal principal)
       at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.Create(OrganizationId organizationId, ADUser mailbox,
    ExchangePrincipal principal)
       at Microsoft.Exchange.ProvisioningAgent.AdminLogAgentClassFactory.ConfigWrapper.get_MailboxLogger()
       at Microsoft.Exchange.ProvisioningAgent.AdminLogProvisioningHandler.OnComplete(Boolean succeeded, Exception e)
       at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean succeeded, Exception exception)

     

     

    [PS] C:\Windows\system32>Set-WebServicesVirtualDirectory "CASHUB1\EWS (default Web site)" -ExternalUrl "https://webmail.domain.com/EWS/Exchange.asmx" -InternalUrl "https://cashub1.domain.com/EWS/Exchange.asmx" -BasicAuthentication:$True -WindowsAuthentication:$True -WSSecurityAuthentication $true
    Creating a new session for implicit remoting of "Set-WebServicesVirtualDirectory" command...
    WARNING: The cmdlet extension agent with the index 0 has thrown an exception in OnComplete(). The exception is:
    System.Net.WebException: The request failed with HTTP status 404: Not Found.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse
    response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Exchange.SoapWebClient.CustomSoapHttpClientProtocol.<>c__DisplayClass4.<Invoke>b__3()
       at
    Microsoft.Exchange.SoapWebClient.HttpAuthenticator.NetworkServiceHttpAuthenticator.AuthenticateAndExecute[T](SoapHttpCl
    ientProtocol client, AuthenticateAndExecuteHandler`1 handler)
       at Microsoft.Exchange.SoapWebClient.SoapHttpClientAuthenticator.AuthenticateAndExecute[T](SoapHttpClientProtocol
    client, AuthenticateAndExecuteHandler`1 handler)
       at Microsoft.Exchange.SoapWebClient.EWS.ExchangeServiceBinding.FindFolder(FindFolderType FindFolder1)
       at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.EwsMailer.GetAdminAuditLogsFolder(ADUser adUser)
       at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.EwsMailer..ctor(OrganizationId organizationId, ADUser
    adUser, ExchangePrincipal principal)
       at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.Create(OrganizationId organizationId, ADUser mailbox,
    ExchangePrincipal principal)
       at Microsoft.Exchange.ProvisioningAgent.AdminLogAgentClassFactory.ConfigWrapper.get_MailboxLogger()
       at Microsoft.Exchange.ProvisioningAgent.AdminLogProvisioningHandler.OnComplete(Boolean succeeded, Exception e)
       at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean succeeded, Exception exception)
    [PS] C:\Windows\system32>-BasicAuthentication:$True -WindowsAuthentication:$True -WSSecurityAuthentication $true

    Thursday, November 18, 2010 10:53 PM

Answers

  • Well i found, what is wrong.

    I have setup Two IP addresses. Because if I setup second OWA/ECB/OAB/AES. Without EWS, because EWS brings up local host binding, it mess the system. But if you do not use ews, it looks like, Exchange shell and EMC probably connect to both, or get response from wrong IP with no EWS, and then  bring up 404 error. When I clean up second  web site, and remove second IP,  error is gone.

     

    It would be fine, if Microsoft published supported exotic configuration, so someone does not go in to a hole, that is not supported.

    • Marked as answer by emma.yoyo Tuesday, November 23, 2010 3:08 AM
    Friday, November 19, 2010 5:39 PM

All replies

  • Well i found, what is wrong.

    I have setup Two IP addresses. Because if I setup second OWA/ECB/OAB/AES. Without EWS, because EWS brings up local host binding, it mess the system. But if you do not use ews, it looks like, Exchange shell and EMC probably connect to both, or get response from wrong IP with no EWS, and then  bring up 404 error. When I clean up second  web site, and remove second IP,  error is gone.

     

    It would be fine, if Microsoft published supported exotic configuration, so someone does not go in to a hole, that is not supported.

    • Marked as answer by emma.yoyo Tuesday, November 23, 2010 3:08 AM
    Friday, November 19, 2010 5:39 PM
  • Hi MaliStane,

    Thanks for sharing.


    Frank Wang
    Tuesday, November 23, 2010 3:08 AM