2010-12-29 14 views
0
私は http://old.castleproject.org/container/facilities/trunk/remoting/containersconnected.html @城からのサンプルを使用しています

「シナリオ:コンテナコンポーネントの両方のエンドポイント上のコンテナを使用し、使用して」城リモーティングサンプル - クライアント投げる例外

は私がこれまでなされてきただけで、更新が1行ですが種類から設定ファイルで= "Castle.Facilities.Remoting.RemotingFacility、Castle.MicroKernel" へ タイプ= "Castle.Facilities.Remoting.RemotingFacility、Castle.Windsor" 質問Castle remoting facility not working

Iでマウリシオによって示唆されているようにまた、クライアントとサーバーの両方で最新のcastle dllを使用するように参照を更新しました。サーバーは正常に起動しますが、クライアントは起動しません。クライアント上で次の例外が発生します。

'remote.console.component'コンポーネントを設定できませんでした。タイプ 'System.Object、mscorlib、バージョン= 4.0.0.0、Culture =ニュートラル、PublicKeyToken = b77a5c561934e089'サービスを実装していない 'Example.Shared.IRemoteConsole、Example.Shared、Version = 1.0.0.0、Culture = neutral、PublicKeyToken = null '

私は間違っていることを示唆していますか?

<component 
     id="remote.console.component" 
     service="Example.Shared.IRemoteConsole, Example.Shared" 
     type="System.Object, mscorlib" 
     remoteclient="component"/> 

を::クライアントの設定ファイル

<?xml version="1.0"?> 
<configuration> 
    <configSections> 
     <section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor"/> 
    </configSections> 

    <castle> 
     <facilities> 
      <facility id="remote.facility" 
       type="Castle.Facilities.Remoting.RemotingFacility, Castle.Windsor" 
       baseUri="tcp://localhost:2133" 
       isClient="true" 
       remoteKernelUri="tcp://localhost:2133/kernel.rem" 
       remotingConfigurationFile="RemotingTcpConfigClient.config"> 
      </facility> 
     </facilities> 

     <components> 
      <component 
       id="remote.console.component" 
       service="Example.Shared.IRemoteConsole, Example.Shared" 
       type="System.Object, mscorlib" 
       remoteclient="component"/> 
     </components> 
    </castle> 

</configuration> 

答えて

1

が置き換えされ、次の

<component 
     id="remote.console.component" 
     type="Example.Shared.IRemoteConsole, Example.Shared" 
     remoteclient="component"/> 
+0

はマウリシオありがとう – Noel

関連する問題