我刚刚在visual studio中创建了一个silo项目,并安装了orleans silo nuget包。当我尝试使用存储提供程序AWS DynamoDB时,它会给我以下错误:
[2017-08-21 10:34:07.405 GMT 13 ERROR 103108 ProviderLoader/IStorageProvider 127.0.0.1:11111] !!!!!!!!!! Provider of type Orleans.Storage.DynamoDBStorageProvider name SHMSDDB was not loaded.Please check that you deployed the assembly in which the provider class is defined to the execution folder.
我的配置文件如下所示:
<?xml version="1.0" encoding="utf-8" ?>
<OrleansConfiguration xmlns="urn:orleans">
<Globals>
<SeedNode Address="localhost" Port="11111" />
<StorageProviders>
<Provider Type="Orleans.Storage.DynamoDBStorageProvider" Name="SHMSDDB"
DataConnectionString="Service=https://dynamodb.eu-west-1.amazonaws.com;AccessKey=AKIAIFA4PW6KTJTQDXOA;SecretKey=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;" />
</StorageProviders>
</Globals>
<Defaults>
<Networking Address="localhost" Port="11111" />
<ProxyingGateway Address="localhost" Port="30000" />
</Defaults>
</OrleansConfiguration>
答案 0 :(得分:0)
我错过了文档开头所描述的依赖项。
唯一安装的软件包是筒仓主机:
PM> Install-Package Microsoft.Orleans.OrleansHost
但是为了使用AWS DynamoDB,我还需要:
PM> Install-Package Microsoft.Orleans.OrleansAWSUtils
PM> Install-Package AWSSDK.DynamoDBv2 -Version 3.1.5.3
我在NuGet包管理器中安装了所有内容,一旦我再次浏览了Orleans指南。