0

Azure にデプロイしようとすると、以下のエラーが発生します。私は基本的なハローワールドアプリをやっています。誰かが洞察を教えてください。以下にログを添付しました。

私は::バージョン1.1.0-beta2を使用しています

サイロはログ ファイルに従って適切に起動しますが、Azure でクライアントを初期化できません。クライアントで以下の構成ファイルを使用しています。

  <?xml version="1.0" encoding="utf-8" ?>
    <!-- 
    This is a sample client configuration file for use by an Azure web role acting as an Orleans client. 
    The comments illustrate common customizations.
    Elements and attributes with no comments should not usually need to be modified.
    For a detailed reference, see "Orleans Configuration Reference.html".
   -->
<ClientConfiguration xmlns="urn:orleans">
  <!-- 
    To turn tracing off, set DefaultTraceLevel="Off" and have no overrides. To see a minimum of messages, set DefaultTraceLevel="Error".
    For the trace log file name, {0} is the silo name and {1} is the current time. 
    Setting WriteTraces to true will cause detailed performance information to be collected and logged about the individual steps in the
    message lifecycle. This may be useful debugging performance issues.
    -->
  <Tracing DefaultTraceLevel="Off" TraceToConsole="false" TraceToFile="{0}-{1}.log" WriteTraces="false">
    <!--
        To get more detailed application logging, you can change the TraceLevel attribute value to "Verbose" or "Verbose2".
        Depending on the log levels you have used in your code, this will cause additional messages to be written to the log.
        -->
    <TraceLevelOverride LogPrefix="Application" TraceLevel="Info" />
  </Tracing>
</ClientConfiguration>

PS:: フュージョン ログを有効にした後でわかりました。1 つの dll が正しく読み込まれていないことがわかりました。問題は修正されました。

4

2 に答える 2

0

AzureClient を使用する必要があります。すべての構成を自動的に処理します。

https://github.com/dotnet/orleans/tree/master/Samples/AzureWebSampleを参照して、そこと同じセットアップに従ってください。最善の方法は、その AzureWebSample を閉じて、独自のグレインとロジックを追加することです。

于 2015-12-12T22:14:38.247 に答える
0

Orleans のどのバージョンを使用していますか? プロジェクトにhttp://www.nuget.org/packages/Microsoft.Orleans.Templates.Interfaces/を含めた場合、呼び出し元クラスはコンパイル時に生成されているはずです。Properties\orleans.codegen.cs ファイルをクリーンアップして、プロジェクトを再構築してみてください。

于 2015-12-09T17:34:41.520 に答える