テーブルストレージからすべてのエントリを読み取るためのこの小さなコードがあります。ここに私の単純なモデルがあります:
public class LineEntity : TableServiceEntity
{
public XElement Data { get; set; }
public LineEntity(string rowKey)
{
PartitionKey = "Line";
RowKey = rowKey;
}
public LineEntity()
{
}
}
そして、これを読み取るコードは次のとおりです。
var StorageAccount = CloudStorageAccount.Parse(RoleEnvironment.GetConfigurationSettingValue("StorageConnectionString"));
var TableClient = StorageAccount.CreateCloudTableClient();
var ServiceContext = TableClient.GetDataServiceContext();
var models = ServiceContext.CreateQuery<LineEntity>("lines").ToList();
何らかの理由で、最後の行はクラウドで次の例外をスローします。
<?xml version="1.0" encoding="utf-8"?><Error><Code>OutOfRangeInput</Code><Message>One of the request inputs is out of range.
RequestId:8a16121a-237c-4015-99cb-b1bbdb7ab7a7
Time:2012-04-30T07:39:42.6396851Z</Message></Error>
開発中は完全に正常に動作します。これに関する手がかりはありますか?
ありがとう、