0
我一直收到IIS中託管的WCF服務的404錯誤。該服務是一項雙面服務。我可以在Web瀏覽器中訪問.svc。但是,當客戶端嘗試登錄時,它會以404 Not Found錯誤超時。 我的web.config的片段看起來是這樣的:在IIS 7中託管的WCF服務404錯誤
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<trust level="Full"/>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" aspNetCompatibilityEnabled="false">
<baseAddressPrefixFilters>
<add prefix="http://seeinstacksproductions.com/"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
<bindings>
<wsDualHttpBinding>
<binding name="dualHttp" receiveTimeout="00:30:00" maxReceivedMessageSize="1048576" sendTimeout="00:01:00">
<readerQuotas maxStringContentLength="99999999" maxArrayLength="9999999" maxBytesPerRead="999999"/>
<security mode="None"/>
</binding>
</wsDualHttpBinding>
</bindings>
<services>
<service name="OLII.Apps.Services.Automation.AutomatorService.WCFAutomatorService">
<host>
<baseAddresses>
<add baseAddress="http://seeinstacksproductions.com/"/>
</baseAddresses>
</host>
<endpoint address="Automator.svc" bindingConfiguration="dualHttp" binding="wsDualHttpBinding" contract="OLII.Apps.Services.ProxyClients.AutomatorServiceProxyClient.IWCFAutomatorService"/>
</service>
</services>
</system.serviceModel>
我已經fiddlered我的應用程序發出請求,它看起來像這樣:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</a:Action>
<a:MessageID>urn:uuid:f15d936e-e893-46cd-ae6a-43186cda91ef</a:MessageID>
<a:ReplyTo>
<a:Address>http://my-server/Temporary_Listen_Addresses/595b57ae-f2a0-4522-b636-1075e326c689/3a866e3c-c707-4fe8-b211-208affa1092a</a:Address>
<a:ReferenceParameters>
<ChannelInstance xmlns="http://schemas.microsoft.com/ws/2005/02/duplex">6</ChannelInstance>
</a:ReferenceParameters>
</a:ReplyTo>
<a:To s:mustUnderstand="1">http://seeinstacksproductions.com/Automator.svc</a:To>
</s:Header>
<s:Body>
<CreateSequence xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm">
<AcksTo>
<a:Address>http://my-server/Temporary_Listen_Addresses/595b57ae-f2a0-4522-b636-1075e326c689/3a866e3c-c707-4fe8-b211-208affa1092a</a:Address>
<a:ReferenceParameters>
<ChannelInstance xmlns="http://schemas.microsoft.com/ws/2005/02/duplex">6</ChannelInstance>
</a:ReferenceParameters>
</AcksTo>
<Offer>
<Identifier>urn:uuid:a2d993bb-1694-4373-a5fa-48f5ec01185b</Identifier>
</Offer>
</CreateSequence>
</s:Body>
</s:Envelope>
感謝
我有我的局域網上試用過,在互聯網上,並在本地,無一不給我404錯誤。 – 2011-04-14 19:08:27
你的消息看起來很好,在你的局域網中這應該工作, – 2011-04-26 07:47:34
你檢查過防火牆嗎? – 2011-04-26 07:47:53