I just wanted to pass on a couple of tips for Azure development that I've recently found to be helpful.
The first is around connection strings. When you use a connection string, you typically store it in the project properties. The labs usually demonstrate reading the connection strings with something like this:
// read storage account configuration settings
CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
{
configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));
});
They then suggest that when you are testing and running in the local dev fabric that you configure the setting to be "UseDevelopmentStorage=true", and then when you're ready to move to production you go back in to your project settings and change it to point to your Azure storage. In practice, I found it much simpler just to store your Azure storage details in the connection string all the time, but in your code use this rather than the sample above:
CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
{
string connectionString;
if (RoleEnvironment.IsAvailable)
connectionString = RoleEnvironment.GetConfigurationSettingValue(configName);
else
connectionString = "UseDevelopmentStorage=true";
configSetter(connectionString);
});
The second tip is related to debugging. It's sort of second nature to just hit F5 and start running. Because you have multiple processes going on with the local dev fabric I've found it's easier to start up your solution by going to the Debug menu and choosing Start Without Debugging. That will compile your app, deploy it to the local dev fabric and start it up. Then you can attach to the w3wp.exe process for your ASPX or WCF application, set your breakpoints, and hit it using something like the WCF Test Client that comes with Visual Studio 2010.
http://dichvuketoanlongbien.com/
http://dichvuketoanlongbien.com/a2-96-dich-vu-ke-toan-tron-goi.html
http://dichvuketoanlongbien.com/a2-98-dich-vu-ke-toan-thue.html
http://dichvuketoanlongbien.com/a2-103-dich-vu-bao-cao-tai-chinh.html
http://dichvuketoanlongbien.com/a2-97-dich-vu-quyet-toan-thue.html
http://dichvuketoanlongbien.com/a2-114-dich-vu-ke-toan-tai-29-quan-huyen.html
http://dichvuketoanlongbien.com/i780-dich-vu-ke-toan-thue-tron-goi-tai-bac-ninh.html
http://dichvuketoanlongbien.com/i779-dich-vu-ke-toan-thue-tron-goi-tai-bac-giang.html
http://dichvuketoanlongbien.com/i778-dich-vu-ke-toan-thue-tron-goi-tai-phu-tho.html
http://dichvuketoanlongbien.com/i781-dich-vu-ke-toan-thue-tron-goi-tai-hung-yen.html
http://dichvuketoanlongbien.com/i782-dich-vu-ke-toan-thue-tron-goi-tai-vinh-phuc.html
http://dichvuketoanlongbien.com/i783-dich-vu-ke-toan-thue-tron-goi-tai-hai-phong.html
http://www.trungtamketoan.com.vn/
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-ha-noi.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-tp-hcm.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-quang-ninh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hai-duong.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-bac-giang.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-bac-ninh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hai-phong.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-nam-dinh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-thai-binh.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-thanh-hoa.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-vinh-phuc.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hung-yen.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-phu-tho.html
http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-binh-duong.html
http://www.tosvn.com
http://iketoan247.blogspot.com
http://tailieuveketoan.blogspot.com
http://mauhinhnendep.blogspot.com
http://www.tosvn.com/search/label/Hack%20CF
http://www.tosvn.com/search/label/Hack%20AvatarStar
http://www.tosvn.com/search/label/Hack%20Warcraft-Dota2
http://www.tosvn.com/2014/12/hack-truy-kich-mien-phi-hack-truy-kich.html
http://iketoan247.blogspot.com/search/label/thong-tin-kinh-te
http://iketoan247.blogspot.com/search/label/tin-bai-ve-thue
http://hoclamketoan.edu.vn/
http://hoclamketoan.edu.vn/category/khoa-hoc-ke-toan
http://hoclamketoan.edu.vn/category/dich-vu-ke-toan
http://hoclamketoan.edu.vn/category/hoc-lam-ke-toan
http://hoclamketoan.edu.vn/category/tai-lieu-ke-toan
http://hocketoan360.com/
http://hocketoan360.com/category/khoa-hoc-ke-toan/
http://hocketoan360.com/category/dich-vu-ke-toan/
http://hocketoan360.com/category/tai-lieu-ke-toan/
http://me.zing.vn/zb/u/htdung2281990
http://me.zing.vn/zb/c/htdung2281990/6594341
http://me.zing.vn/zb/c/htdung2281990/1
This is part 2 of a 5 part series on the CASI (Claims, Azure and SharePoint Integration) Kit.
·