c# - The remote name could not be resolved when creating blob Container -
im trying store screenshots cloud azure keep geting exception:
remote name not resolved:'azuretest.blob.core.windows.net.blob.core.windows.net'
cloudstorageaccount storageaccount = cloudstorageaccount.parse(cloudconfigurationmanager.getsetting("storageconnectionstring")); cloudblobclient blobclient = storageaccount.createcloudblobclient(); cloudblobcontainer container = blobclient.getcontainerreference("screenshots"); container.createifnotexists();
does know might causing exception?
it looks have wrong account name in connection string, should have:
accountname=azuretest
instead of:
accountname=azuretest.blob.core.windows.net
Comments
Post a Comment