[英]Azure Storage Emulator error on creation of queue
Getting error on creation of cloudqueue. 建立Cloudqueue时发生错误。 Using storage emulator in local machine.
在本地计算机上使用存储模拟器。
Here's the stacktrace: 这是堆栈跟踪:
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Executor\Executor.cs:line 604
at Microsoft.WindowsAzure.Storage.Queue.CloudQueue.Create(QueueRequestOptions options, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Queue\CloudQueue.cs:line 52
at Microsoft.WindowsAzure.Storage.Queue.CloudQueue.CreateIfNotExists(QueueRequestOptions options, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Queue\CloudQueue.cs:line 176
EDIT: Name of the queue is copyprojectqueue
编辑:队列的名称是
copyprojectqueue
Conclusion: As Gaurav commented the older version of storage emulator was not supported in the latest library version. 结论:正如Gaurav所评论的那样,最新库版本不支持旧版本的存储模拟器。
According to 400 error, I assume that the queue name is incorrect. 根据400错误,我认为队列名称不正确。 The following is the snippet from the document.
以下是文档的摘录。
Every queue within an account must have a unique name.
帐户中的每个队列必须具有唯一的名称。 The queue name must be a valid DNS name, and cannot be changed once created.
队列名称必须是有效的DNS名称,并且一旦创建就不能更改。 Queue names must confirm to the following rules:
队列名称必须确认以下规则:
A queue name must start with a letter or number, and can only contain letters, numbers, and the dash (-) character.
队列名称必须以字母或数字开头,并且只能包含字母,数字和破折号(-)字符。
The first and last letters in the queue name must be alphanumeric.
队列名称中的第一个和最后一个字母必须为字母数字。 The dash (-) character cannot be the first or last character.
破折号(-)不能是第一个或最后一个字符。 Consecutive dash characters are not permitted in the queue name.
队列名称中不允许使用连字符。
All letters in a queue name must be lowercase.
队列名称中的所有字母都必须小写。
A queue name must be from 3 through 63 characters long.
队列名称的长度必须在3到63个字符之间。
Other related info: 其他相关信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.