当我尝试部署到azure时,我遇到了以下错误。我正在做基本的你好世界的应用程序。有人可以提供一些见解。我已附上以下日志。
我正在使用:: Version 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未正确加载。问题已解决。
答案 0 :(得分:0)
您使用的奥尔良版本是什么?如果在项目中包含http://www.nuget.org/packages/Microsoft.Orleans.Templates.Interfaces/,则应该在编译时生成调用者类。尝试清理Properties \ orleans.codegen.cs文件并重建项目。
答案 1 :(得分:0)
您应该使用AzureClient。它会自动处理所有配置。
请参阅https://github.com/dotnet/orleans/tree/master/Samples/AzureWebSample并按照相同的设置进行操作。最好的方法是关闭AzureWebSample并添加自己的粒度和逻辑。