My cloud project with Azure progresses. The packages must be installable to multiple Azure environments. This means configuration. But how to make changes to the web.config of my WebRoles?
One option is to NOT encrypt the package as described here, but that means changing twee files. In the scfg file the DiagnosticsConnectionString lives. Why can’t I put everything int he cscfg file?
I removed the endpoints (that’s what started all this) from the web.config. Using unity for environment switching I construct a proxy that reads the endpoint information from the cscfg file. Now I only have to change one file. As a bonus I can change the endpoints after it is installed in the cloud.
About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (21)
- Development (208)
- Security (17)
- Test (32)
- Tooling (166)
- Uncategorized (168)
Most used tags