You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ASQ with secured connection string (alias instead of connection string) with a default storage account, dispatches are failing with NullReferenceException.
Details
Default storage account connection string is not associated with the default alias. Instead, the alias is mapped to an empty string, which causes CreateQueueClients to build a null CloudQueueClient that is used during dispatching, causing an exception.
According to documentation, API should be used in the following manner:
In reality this is failing when an attempt is made to dispatch a message to account_A.
Workaround
Workaround is to register default connection string and its alias via AccountRouting() API.
vartransport= endpointConfiguration.UseTransport<AzureStorageQueueTransport>();
transport.ConnectionString("account_A_connection_string");
transport.UseAccountAliasesInsteadOfConnectionStrings();
transport.DefaultAccountAlias("account_A");//workaround - force alias registration
transport.AccountRouting().AddAccount("account_A","account_A_connection_string");
Affected versions
7.4.x
7.5.x
8.0
The text was updated successfully, but these errors were encountered:
Who's affected
Symptoms
When using ASQ with secured connection string (alias instead of connection string) with a default storage account, dispatches are failing with
NullReferenceException
.Details
Default storage account connection string is not associated with the default alias. Instead, the alias is mapped to an empty string, which causes
CreateQueueClients
to build a nullCloudQueueClient
that is used during dispatching, causing an exception.According to documentation, API should be used in the following manner:
In reality this is failing when an attempt is made to dispatch a message to
account_A
.Workaround
Workaround is to register default connection string and its alias via
AccountRouting()
API.Affected versions
The text was updated successfully, but these errors were encountered: