0

我刚刚在 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>
4

1 回答 1

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 包管理器中。

于 2017-08-21T13:50:47.010 回答