事前にアドバイスをありがとうございます。私はnet.tcp
を介してWCFサービスをホストしているWindowsサービスがあり、これは素晴らしい仕事です。 WCFサービスアプリケーションも作成しました。サービスアプリケーションにnet.tcp
サービス参照を追加しようとしています。それから私は大丈夫行くことGACに追加しますが、私はそれがServer.CreateObject
から呼び出すことができるようにするWCFサービスアプリケーションをします。regasmしようとする場合、私はエラーを取得する:管理されたWindowsサービスでホストされているWCFサービスは、WCFサービスアプリケーションを使用して接続します。
Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInterface(ClassInterfaceType.None)] and exposing an explicit interface as the default interface to COM using the ComDefaultInterface attribute.
それは動作しません。私はクラスライブラリを介してそれを呼び出そうとしましたが、これはエンドポイントが正しく設定されていないためにも機能しません。
アドバイスはありますか?