我正在尝试从队列中弹出消息。(Windows Phone 7)但不幸的是在CloudOperationResponse<CloudQueueMessage> response
对象内部出现这样的错误:
Value for one of the query parameters specified in the request URI is invalid.
RequestId:75c52c29-a325-44a4-9cc4-3203fb99fb47
Time:2012-07-11T09:43:56.6042490Z
任何人有任何想法为什么会发生?先感谢您!
public StorageInitializer()
{
var resolver = new CloudStorageClientResolverAccountAndKey(
new StorageCredentialsAccountAndKey("ACCNAME", "KEY"),
new Uri("http://ACCNAME.blob.core.windows.net"),
new Uri("http://ACCNAME.queue.core.windows.net"),
new Uri("http://ACCNAME.table.core.windows.net"),
Deployment.Current.Dispatcher);
CloudStorageContext.Current.Resolver = resolver;
}
public void FetchMsg()
{
CloudQueueClient queueClient = CloudStorageContext.Current.Resolver.CreateCloudQueueClient() as CloudQueueClient;
var queue = queueClient.GetQueueReference("queueout");
queue.GetMessage(TimeSpan.FromSeconds(1), OnMessageReturned);
}
private void OnMessageReturned(CloudOperationResponse<CloudQueueMessage> response)
{
string str = response.Response.AsString;
}