ファイルレスアクティベーションを介してXP上のIISでホストされているサービスがあります。IISでSSLポートが有効になっていない場合、サービスは正常に開始されますが、SSLポートが有効になっている場合、次のエラーメッセージが表示されます。
System.ServiceModel.ServiceActivationException:コンパイル中の例外のため、サービス'/SkillsPrototype.Web/services/Linkage.svc'をアクティブ化できません。例外メッセージは次のとおりです。バインディングインスタンスはすでにURIをリッスンするように関連付けられています' http://rcollet.hsb-corp.hsb.com/SkillsPrototype.Web/Services/Linkage.svc '。2つのエンドポイントが同じListenUriを共有する場合は、同じバインディングオブジェクトインスタンスも共有する必要があります。競合する2つのエンドポイントは、AddServiceEndpoint()呼び出し、構成ファイル、またはAddServiceEndpoint()とconfigの組み合わせのいずれかで指定されました。。---> System.InvalidOperationException:バインディングインスタンスはすでにURIをリッスンするように関連付けられています' http://rcollet.hsb-corp.hsb.com/SkillsPrototype.Web/Services/Linkage.svc'。2つのエンドポイントが同じListenUriを共有する場合は、同じバインディングオブジェクトインスタンスも共有する必要があります。競合する2つのエンドポイントは、AddServiceEndpoint()呼び出し、構成ファイル、またはAddServiceEndpoint()とconfigの組み合わせのいずれかで指定されました。
私のサービスモデルの構成は
<system.serviceModel>
<diagnostics wmiProviderEnabled="true">
<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="3000"/>
</diagnostics>
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" />
</webHttpEndpoint>
</standardEndpoints>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<webHttpBinding>
<binding>
<security mode="None">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
</bindings>
<protocolMapping>
</protocolMapping>
<services>
</services>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false">
<serviceActivations>
<clear/>
<add factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" service="SkillsPrototype.ServiceModel.Linkage" relativeAddress="~/Services/Linkage.svc"/>
</serviceActivations>
</serviceHostingEnvironment>
</system.serviceModel>
svclogファイルを見ると、SSLが有効になっているときに返される2つのベースアドレスがあります。1つはhttp用、もう1つはhttps用です。これは問題の一部だと思いますが、解決方法がわかりません。
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>524333</EventID>
<Type>3</Type>
<SubType Name="Information">0</SubType>
<Level>8</Level>
<TimeCreated SystemTime="2010-06-16T17:40:55.8168605Z" />
<Source Name="System.ServiceModel" />
<Correlation ActivityID="{95927f9a-fa90-46f4-af8b-721322a87aaa}" />
<Execution ProcessName="aspnet_wp" ProcessID="1888" ThreadID="5" />
<Channel/>
<Computer>RCOLLET</Computer>
</System>
<ApplicationData>
<TraceData>
<DataItem>
<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information">
<TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.ServiceHostBaseAddresses.aspx</TraceIdentifier>
<Description>ServiceHost base addresses.</Description>
<AppDomain>/LM/w3svc/1/ROOT/SkillsPrototype.Web-1-129211836532542949</AppDomain>
<Source>System.ServiceModel.WebScriptServiceHost/49153359</Source>
<ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/CollectionTraceRecord">
<BaseAddresses>
<Address>http://rcollet.hsb-corp.hsb.com/SkillsPrototype.Web/Services/Linkage.svc</Address>
<Address>https://rcollet.hsb-corp.hsb.com/SkillsPrototype.Web/Services/Linkage.svc</Address>
</BaseAddresses>
</ExtendedData>
</TraceRecord>
</DataItem>
</TraceData>
</ApplicationData>
</E2ETraceEvent>
投稿の文字数制限により、完全なサービスログを投稿できません。