初始化 Orleans 客户端时出现 Orleans 错误
Orleans Error while Initializing Orleans Client
当我尝试部署到 Azure 时出现以下错误。我正在做基本的 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 没有正确加载。问题已解决。
您使用的是哪个版本的 Orleans?如果您在项目中包含 http://www.nuget.org/packages/Microsoft.Orleans.Templates.Interfaces/,则应该在编译时生成调用程序 class。尝试清理 Properties\orleans.codegen.cs 文件并重建项目。
您应该使用 AzureClient。它会自动处理所有配置。
请参考 https://github.com/dotnet/orleans/tree/master/Samples/AzureWebSample 并按照与此处相同的设置进行操作。最好的方法是关闭 AzureWebSample 并添加您自己的谷物和逻辑。
当我尝试部署到 Azure 时出现以下错误。我正在做基本的 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 没有正确加载。问题已解决。
您使用的是哪个版本的 Orleans?如果您在项目中包含 http://www.nuget.org/packages/Microsoft.Orleans.Templates.Interfaces/,则应该在编译时生成调用程序 class。尝试清理 Properties\orleans.codegen.cs 文件并重建项目。
您应该使用 AzureClient。它会自动处理所有配置。
请参考 https://github.com/dotnet/orleans/tree/master/Samples/AzureWebSample 并按照与此处相同的设置进行操作。最好的方法是关闭 AzureWebSample 并添加您自己的谷物和逻辑。