Azure的仿真器端口冲突,应用程序试图连接到错误的端口 [英] Azure Emulator Port conflict, app tries to connect to wrong port
问题描述
在启动Azure存储模拟器,它失败,因为与一些戴尔驱动程序/软件端口冲突的。
When starting the Azure Storage Emulator, it fails because of a port conflict with some dell drivers/software.
我通过更改 StorageEmulatorConfig
栏目网址在 WAStorageEmulator.exe.config
解决了这个。
I solved this by changing urls in the StorageEmulatorConfig
section inside WAStorageEmulator.exe.config
.
<StorageEmulatorConfig>
<services>
<service name="Blob" url="http://127.0.0.1:10100/"/>
<service name="Queue" url="http://127.0.0.1:10101/"/>
<service name="Table" url="http://127.0.0.1:10102/"/>
</services>
<accounts.../>
</StorageEmulatorConfig>
所以,现在的模拟器运行没有问题。
So now the emulator runs without problem.
我的Web应用程序仍试图连接到旧港口,虽然....
My web application still tries to connect to the old ports, though....
这是我用的是缺一连接字符串:
The connection string that I use is the short one:
<add name="AzureStorage" connectionString="UseDevelopmentStorage=true;"/>
我已经试过了正常形态太:
I have tried the normal form too:
<add name="AzureStorage"
connectionString="DefaultEndpointsProtocol=https;
AccountName=devstoreaccount1;
AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;"/>
如何我的应用程序发现什么端点应该使用?结果
我怎么能告诉它使用其他端口?
How does my app discover what endpoints it should use?
How can I tell it to use another port?
推荐答案
您可以通过在连接字符串中指定端点尝试:
You can try by specifying endpoints in your connection string:
DefaultEndpointsProtocol=http;
AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;
BlobEndpoint=http://127.0.0.1:10100/devstoreaccount1;
QueueEndpoint=http://127.0.0.1:10101/devstoreaccount1;
TableEndpoint=http://127.0.0.1:10102/devstoreaccount1;
这篇关于Azure的仿真器端口冲突,应用程序试图连接到错误的端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!