visual studio - Configuring Development Storage Account in Server Explorer -
i have changed ports azure storage emulator runs on 10000,10001,10002 10003,10004,10005 config file @ "c:\program files (x86)\microsoft sdks\azure\storage emulator\wastorageemulator.exe.config"
now when try access development storage server explorer in visual studio 2013 fails access updated ports. tried manually add external storage , specify endpoints reflect updated ports following info default storage account information:
defaultendpointsprotocol=http
accountname=devstoreaccount1
accountkey=eby8vdm02xnocqflquwjpllmetlcdxj1ouzft50usrz6ifsufq2uvercz4i6tq/k1szfptotr/kbhbeksogmgw==
blobendpoint=http://127.0.0.1:10003/devstoreaccount1
queueendpoint=http://127.0.0.1:10004/devstoreaccount1
tableendpoint=http://127.0.0.1:10005/devstoreaccount1
but still not allow connect. tried same endpoints without storage account suffix. reverts ports 10000,10001,10002 when refresh external storage. assume reading config somewhere cannot seem google answer being read from.
so how can configure server explorer reflect updated ports?
the ports hard coded cloudstorageaccount class no can't modifiy them:
private static cloudstorageaccount getdevelopmentstorageaccount(uri proxyuri) { uribuilder uribuilder = proxyuri != (uri)null ? new uribuilder(proxyuri.scheme, proxyuri.host) : new uribuilder("http", "127.0.0.1"); uribuilder.path = "devstoreaccount1"; uribuilder.port = 10000; uri uri1 = uribuilder.uri; uribuilder.port = 10001; uri uri2 = uribuilder.uri; uribuilder.port = 10002; uri uri3 = uribuilder.uri; uribuilder.path = "devstoreaccount1-secondary"; uribuilder.port = 10000; uri uri4 = uribuilder.uri; uribuilder.port = 10001; uri uri5 = uribuilder.uri; uribuilder.port = 10002; uri uri6 = uribuilder.uri; cloudstorageaccount cloudstorageaccount = new cloudstorageaccount(new storagecredentials("devstoreaccount1", "eby8vdm02xnocqflquwjpllmetlcdxj1ouzft50usrz6ifsufq2uvercz4i6tq/k1szfptotr/kbhbeksogmgw=="), new storageuri(uri1, uri4), new storageuri(uri2, uri5), new storageuri(uri3, uri6), (storageuri)null); cloudstorageaccount.settings = (idictionary<string, string>)new dictionary<string, string>(); cloudstorageaccount.settings.add("usedevelopmentstorage", "true"); if (proxyuri != (uri)null) cloudstorageaccount.settings.add("developmentstorageproxyuri", proxyuri.tostring()); cloudstorageaccount.isdevstoreaccount = true; return cloudstorageaccount; }
Comments
Post a Comment