0

当我尝试部署到天蓝色时,我遇到了错误。我正在做基本的 hello world 应用程序。有人可以提供一些见解。我附上了下面的日志。

我正在使用 :: 版本 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

你用的是什么版本的奥尔良?如果您在项目中包含http://www.nuget.org/packages/Microsoft.Orleans.Templates.Interfaces/,则调用程序类应该已在编译时生成。尝试清理 Properties\orleans.codegen.cs 文件并重建项目。

于 2015-12-09T17:34:41.520 回答
0

您应该使用 AzureClient。它自动处理所有配置。

请参考https://github.com/dotnet/orleans/tree/master/Samples/AzureWebSample并遵循与那里相同的设置。最好的方法是关闭该 AzureWebSample 并添加您自己的粒度和逻辑。

于 2015-12-12T22:14:38.247 回答