Azure Emulator端口冲突,应用程序尝试连接到错误的端口
启动Azure Storage Emulator时,由于与某些dell驱动程序/软件的端口冲突而失败 我通过更改Azure Emulator端口冲突,应用程序尝试连接到错误的端口,azure,emulation,azure-storage,Azure,Emulation,Azure Storage,启动Azure Storage Emulator时,由于与某些dell驱动程序/软件的端口冲突而失败 我通过更改WAStorageEmulator.exe.config中storageemulator配置部分的URL解决了这个问题 <StorageEmulatorConfig> <services> <service name="Blob" url="http://127.0.0.1:10100/"/> <service
WAStorageEmulator.exe.config
中storageemulator配置
部分的URL解决了这个问题
<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>
因此,现在模拟器运行没有问题
尽管如此,我的web应用程序仍在尝试连接到旧端口
我使用的连接字符串是短字符串:
<add name="AzureStorage" connectionString="UseDevelopmentStorage=true;"/>
我也尝试过正常形式:
<add name="AzureStorage"
connectionString="DefaultEndpointsProtocol=https;
AccountName=devstoreaccount1;
AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;"/>
我的应用程序如何发现应该使用哪些端点?如何告诉它使用其他端口?您可以通过在连接字符串中指定端点来尝试:
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;
您可以尝试在连接字符串中指定端点:
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;
伟大的但是,如果首先知道应用程序如何(或者在本例中,为什么不)发现正确的端口,那就更重要了……可以在这里找到这些默认的本地仿真器凭据:(对于像我这样想知道神奇凭据来自何方的人:)添加@mcw0933 edit-确保连接字符串中没有空格,否则会出现“找不到有效的帐户信息组合”错误。@mcw0933的链接移动得很好!但是,如果首先知道应用程序如何(或者在本例中,为什么不)发现正确的端口,那就更重要了……可以在这里找到这些默认的本地仿真器凭据:(对于像我这样想知道神奇凭据来自何方的人:)添加@mcw0933 edit-确保连接字符串中没有空格,否则会出现“找不到有效的帐户信息组合”错误。@mcw0933的链接已移动