私のSilverlight 4.0アプリケーションから。私はWCFファイルに簡単にアクセスできますが、httpsに移動するとWCFサービスにアクセスできません。エラーの詳細は次のとおりです:https経由のSilverlight WCFアクセス時のエラー
An unknown error occurred. Please contact your system Administrator for more information.
An exception occurred during the operation, making the result invalid. Check InnerException for exception details.
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at FileSearch.SearchServices.GetTypeofFileDetailedCompletedEventArgs.get_Result()
at FileSearch.Home.<SearchButton_Click>b__0(Object s, GetTypeofFileDetailedCompletedEventArgs ea)
at FileSearch.SearchServices.SearchServiceClient.OnGetTypeofFileDetailedCompleted(Object state)
私はこの問題に関してさまざまな投稿を見ましたが、何も正しい方向に向いていません。
ここでは、SilverlightアプリケーションとWCFサービスをホストするWebアプリケーション用のweb.configファイルに関する詳細を示します。
<services>
<service name="FileSearch.Web.Services.SearchService">
<endpoint address="" binding="customBinding" bindingConfiguration="FileSearch.Web.Services.SearchService.customBinding0" contract="FileSearch.Web.Services.SearchService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
、ここでservicerefernce.clientconfigファイルです:
<configuration>
<system.serviceModel>
<bindings>
<customBinding>
<binding name="CustomBinding_SearchService">
<binaryMessageEncoding />
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="../Services/SearchService.svc"
binding="customBinding" bindingConfiguration="CustomBinding_SearchService"
contract="SearchServices.SearchService" name="CustomBinding_SearchService" />
</client>
</system.serviceModel>
</configuration>
UPDATE:
私はHTTPSモードでサービスを実行するための答えを受けました。私は、httpとhttpsの両方のモードでサービスを実行したいと思います。
これに関するアイデアですか?
サービスで呼び出す操作のコードを投稿できますか?その操作に例外があるように思えます。 – Tim
しかし、httpでうまく動作しています。問題は 'https'であります –
バインディングの設定ファイルにセキュリティ設定がありません - これは問題の一部である可能性がありますか? – Tim