Windows – 我无法从本地Azure存储模拟器,VisualStudio或Azure存
我需要通过Azure队列发送消息,我需要使用
Windows Azure模拟器进行测试,该模拟器表示正确运行.这些是我经历的步骤:
1-运行Windows Azure存储模拟器(我尝试了2.0.0和3.2.0版本) >使用Windows Azure存储模拟器2.0.0时: 现在“已弃用”的UI显示所有三个存储模拟器正确运行. (我无法附加显示它的快照,因为我已经升级了VisualStudio 2013的Windows Azure存储SDK工具. [这是一个快照显示它正确运行但我没有声誉添加imgaes:s] 2-代码: string azureStorageConnectionString = "UseDevelopmentStorage=true"; string queueName = "queuetest"; CloudStorageAccount storageAccount = CloudStorageAccount.Parse(storageConnectionString); CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient(); _queue = queueClient.GetQueueReference(queueName); _queue.CreateIfNotExists(); 3- I每个WAS Emulator版本都有两个不同的问题. -Problem A:在行_queue.CreateIfNotExists();得到一个未找到uri的异常(404),因为它无法找到队列,使用uri:127.0.0.1:10001 / devstoreaccount1 /queuetest -Problem B:当我升级WAS仿真器时,异常消失了(因此升级是问题A的解决方案)但Azure Storage Explorer不会访问开发人员存储帐户并提供以下消息: Windows Azure Developer Storage is not runnign. The process DSService.exe is not detected 总而言之,我修复了问题A,但现在我无法使用Azure存储资源管理器访问DevStorage帐户. 解决方法
配偶给了我一个惊人的解决方案.您需要创建一个名为DSService的VisualStudio项目,将其放在C:中的任何位置,并包含以下代码:
namespace DSService { class Program { static void Main(string[] args) { Console.ReadLine(); } } } 现在,我可以使用Azure存储资源管理器…创建,插入消息和访问DevStorage帐户队列:-0 但是,正如Gaurav Mantri所说,您还可以使用VisualStudio 2013工具查看DevStorage帐户的内容,这是一个非常好的选择. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- .net – Windows Phone 7 XNA GUI框架
- 如何在.net Windows应用程序中实现“撤消”操作?
- wpf – 如何修复带圆角的按钮中边框和背景之间的空白区域?
- go 工具链目前[不支持编译 windows 下的动态链接库]解决方案
- windows – GetWindowLong() – 使用Creators Update引入的
- windows – Python 3.2 Multiprocessing.Process没有运行目
- windows – Win32 C – 当窗口恢复时做一些事情,哪条消息?
- windows-server-2008 – 我如何知道哪些共享文件夹文件已在
- 无法使用for循环从Windows批处理脚本编写html
- windows-7 – 如何在不使用GUI的情况下为远程桌面授权用户?
- 本地变量声明放置所需的Microsoft C/C++编译器开
- 在Windows XP下安装Apache+MySQL+PHP环境
- windows – 在多个zip压缩文件中搜索字符串
- 有关使用Microsoft OLE DB Provider for Jet 4.0
- windows-server-2008 – 使用WSUS更新不在域上的
- 如何检测Windows移动设备是否有摄像头? C#
- Windows Server 2008 R2通过IP安全策略阻止某个I
- windows-server-2008 – Windows Server 2008(We
- windows – 如何在每天的某个时间自动打开网站
- windows-7 – SSD硬盘RAID-0效率?