简体   繁体   English

azure本地存储模拟器发出400错误的请求

[英]azure local storage emulator issue 400 bad request

I could not find this one on the site. 我在网站上找不到这个。 It may be trivial, but the error message is pretty misleading. 这可能是微不足道的,但是错误消息却极具误导性。

When you try out things with the azure sdk and the local emulators (storage and compute emulators) while debugging, you may get the following error during initialization of those emulators: 在调试时尝试使用azure sdk和本地仿真器(存储和计算仿真器)进行测试时,在初始化这些仿真器时可能会出现以下错误:

The process cannot access the file because it is used by an another process. 该进程无法访问该文件,因为它已被另一个进程使用。

Moreover, if you want to test things from the code and you want to access the blob storage emulator, you may get 400 Bad request as a result. 此外,如果您想从代码中测试内容,并且要访问Blob存储模拟器,结果可能会收到400 Bad请求。

You can configure this. 您可以配置它。 Open the "DSServiceLDB.exe.config" file under "C:\\Program Files\\Microsoft SDKs\\Windows Azure\\Emulator\\devstore". 打开“ C:\\ Program Files \\ Microsoft SDKs \\ Windows Azure \\ Emulator \\ devstore”下的“ DSServiceLDB.exe.config”文件。

Inside the file, tweak the values in this section: 在文件内部,调整此部分中的值:

<services>
    <service name="Blob" url="http://127.0.0.1:10000/"/>
    <service name="Queue" url="http://127.0.0.1:10001/"/>
    <service name="Table" url="http://127.0.0.1:10002/"/>
</services>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM