我有一个testing交换2010 SP1服务器也运行作为域控制器。 我们将使用它作为开发交换服务器来testing我们自己与Exchange相关的开发。
域名工作正常,交换也是如此。 它可以路由电子邮件等帐户没有问题。 连接Outlook 2010/2003并使用OWA在服务器和远程机器上正常工作。 这没有互联网面临的路线,这不是必需的。
为了开发Exchange提供的API,我们需要使用Auto Discover服务。 但是,自动发现服务似乎没有工作。
如果我从另一台机器浏览到我的浏览器中的“ https://davedc/Autodiscover/autodiscover.xml ”,我不会提示进行身份validation,而是显示如下:
<?xml version="1.0" encoding="utf-8"?> <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006"> <Response> <Error Time="11:17:04.4201807" Id="2459279933"> <ErrorCode>600</ErrorCode> <Message>Invalid Request</Message> <DebugData /> </Error> </Response> </Autodiscover>
然后,我用PS来诊断服务:Test-OutlookWebServices -ClientAccessServer“davedc”,并返回:
RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1019 Type : Information Message : A valid Autodiscover service connection point was found. The Autodiscover URL on this object is https://da vedc/Autodiscover/Autodiscover.xml. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1013 Type : Error Message : When contacting https://davedc/Autodiscover/Autodiscover.xml received the error The remote server returned an error: (500) Internal Server Error. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1023 Type : Error Message : The Autodiscover service couldn't be contacted. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1113 Type : Error Message : When contacting https://davedc.exch.local:443/Autodiscover/Autodiscover.xml received the error The remote server returned an error: (500) Internal Server Error. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1123 Type : Error Message : The Autodiscover service couldn't be contacted. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1013 Type : Error Message : When contacting https://davedc/EWS/Exchange.asmx received the error Client found response content type of '', but expected 'text/xml'. The request failed with an empty response. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1025 Type : Error Message : [EXCH] Error contacting the AS service at https://davedc/EWS/Exchange.asmx. Elapsed time was 15 millisecon ds. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1026 Type : Success Message : [EXCH] Successfully contacted the UM service at https://davedc/EWS/Exchange.asmx. The elapsed time was 15 milliseconds. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1113 Type : Error Message : When contacting https://davedc.exch.local/EWS/Exchange.asmx received the error Client found response conte nt type of '', but expected 'text/xml'. The request failed with an empty response. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1125 Type : Error Message : [Server] Error contacting the AS service at https://davedc.exch.local/EWS/Exchange.asmx. Elapsed time was 15 milliseconds. RunspaceId : daaf1eca-c47e-4069-8e70-6c3816d240dd Id : 1126 Type : Success Message : [Server] Successfully contacted the UM service at https://davedc.exch.local/EWS/Exchange.asmx. The elapsed time was 0 milliseconds.
我删除了自动发现VD
Remove-AutodiscoverVirtualDirectory -Identity "davedc\autodiscover (Default Web Site)" -Confirm:$false
然后重新创build
New-AutodiscoverVirtualDirectory -WebsiteName "Default Web Site" -InternalUrl "https://davedc/Autodiscover/Autodiscover.xml" -BasicAuthentication 1 -WindowsAuthentication 1 Set-ClientAccessServer -Identity davedc -AutoDiscoverServiceInternalUri "https://davedc/Autodiscover/Autodiscover.xml"
Get-AutodiscoverVirtualDirectory报告一个内部URL,但testingOutlook Web服务结果保持不变。
我能做些什么才能使Autodiscover正常工作?
[完全编辑,因为我发现MS发布命令的语法不同于我需要运行的语法]
解决。 在尝试解决该问题时,我的一位同事在默认网站下的IIS中创build了一个额外的SSL端口。 (我不知道这/意识到这可能会导致一个问题)
梳理事件日志,我发现这个条目。
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 https. There can be at most one address per scheme in this collection.
从网站上删除额外的SSL绑定解决了这个问题。 现在自动发现工作。