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