エラーメッセージ:"異なる二つの契約は同じConfigurationName"をダウンロードする場合は、wsdlからxamlxにAppFabric beta2

StackOverflow https://stackoverflow.com/questions/2392975

質問

を取得します以下のようなエラーメッセージが写真撮影のポイントにご案内して svcutil をクライアント代理 xamlx ファイルが開催AppFabric beta2:

異なる二つの契約は同じConfigurationName

理解していメッセージのしがいないので、その原因はどのように修理してください。私は次の紹介とワークフローによりサービスの研究室からのVS2010RC研修キットです。ウェブアプリケーションには二つのサービス:SubmitApplication.xamlxとEducationScreening.xamlx.私はいろい作品を手がけている四つの評価項目.まちのAppFabricダッシュボードにIIS Mgmtスタジオ:

basicHttpBinding (Contract: *)
    (Type: Application(Default))
netNamedPipeBinding (Contract: System.ServiceModel.Activities.IWorkflowInstanceManagement)
    (Type: System (workflowControlEndpoint))
netNamedPipeBinding (Contract: *)
    (Type: Application (Default))
serviceMetadataHttpGetBinding (Contract: serviceMetadataHttpGetContract)
    (Type: System (serviceMetadataEndpoint))

時にSubmitApplication.xamlxブラウザには、以下のstacktrace:

[InvalidOperationException: Two different contracts have the same ConfigurationName.]
System.ServiceModel.Activities.WorkflowServiceHost.CreateDescription(IDictionary`2& implementedContracts) +361
System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +174
System.ServiceModel.Activities.WorkflowServiceHost.InitializeDescription(WorkflowService serviceDefinition, UriSchemeKeyedCollection baseAddresses) +82
System.ServiceModel.Activities.WorkflowServiceHost.InitializeFromConstructor(WorkflowService serviceDefinition, Uri[] baseAddresses) +206
System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory.CreateWorkflowServiceHost(WorkflowService service, Uri[] baseAddresses) +43
System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +974
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1423
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +50
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +1132

[ServiceActivationException: The service '/HRApplicationServices/SubmitApplication.xamlx' cannot be activated due to an exception during compilation. The exception message is: Two different contracts have the same ConfigurationName..]
System.Runtime.AsyncResult.End(IAsyncResult result) +889824
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +179150
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +107

誰でもできるので教えて私が悪いのでしょうか。

まだ設定されずにバインディングです。のBasicHttpBindingは分かりにデフォルトです。純4時開催のサービスの内部にサポートも組み込まれています。その他のバインディングにより構成されAppFabric.において設定します。

更新:削除のxamlxサービスEducationScreening.xamlx).効果はありません。

Kind regards,
ロナルド-Wildenberg

役に立ちましたか?

解決

私はいくつかのさらなる研究を行なったし、私は問題を発見しました。 SubmitApplication.xamlxワークフロー内の2つのにReceiveRequest活動があります。 彼らは持っていた二つの異なるServiceContractName者:

{http://contoso.com/hr}IApplicationService
{http://contoso.com/hr/}IApplicationService

私はまだしかし、メッセージを理解していません。 xamlxサービスのConfigurationNameは何ですか? そして、私はServiceContractNameを変更したときに、なぜそれが違うのですか?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top