3
この例外が発生します。Castle Windsor Fluent ApiでIncludeExceptionDetailInFaultsを有効にすることはできますか?
サーバーが内部エラーのために要求を処理できませんでした。エラーの詳細については 、どちらか ため、クライアントに例外情報を送信する、またはMicrosoftごとに トレースをオンにするには、サーバー上の IncludeExceptionDetailInFaults(ServiceBehaviorAttribute からか、設定行動からのいずれか)をオンにします。 NET Framework 3.0 SDKのマニュアルと は、サーバートレースログを調べます。
私は流暢なAPIで
<serviceBehaviors>
<behavior name="metadataAndDebugEnabled">
<serviceDebug
includeExceptionDetailInFaults="true"
/>
<serviceMetadata
httpGetEnabled="true"
httpGetUrl=""
/>
</behavior>
</serviceBehaviors>
をこの設定を追加するには、そのための方法はありますか?あなたは、コンテナとそのインスタンスを使用するWCFの統合施設へのあなたの特定のオプションでIServiceBehavior
実装を登録することができ私の知る限りここに私の現在の設定...
Container.Register(
AllTypes.FromAssemblyNamed("My.Server.Services")
.Pick().If(type => type.GetInterfaces().Any(i => i.IsDefined(typeof(ServiceContractAttribute), true)))
.Configure(configurer => configurer.Named(configurer.Implementation.Name)
.LifeStyle.PerWcfOperation()
.AsWcfService(
new DefaultServiceModel()
.AddEndpoints(
WcfEndpoint.BoundTo(new NetTcpBinding { PortSharingEnabled = true }).At(string.Format("net.tcp://localhost:6969/{0}", configurer.Implementation.Name)),
WcfEndpoint.BoundTo(new NetNamedPipeBinding()).At(string.Format("net.pipe://localhost/{0}", configurer.Implementation.Name)))
.PublishMetadata()
)
)
.WithService.Select((type, baseTypes) => type.GetInterfaces().Where(i => i.IsDefined(typeof(ServiceContractAttribute), true))));