Have you spent your hours getting rid of the following exception ? I have. So in this article, I am trying to save you time. The first thing to do is to explain why this error occurs.Azure application runs in Full IIS model from SDK 1.3 onwards. In simple English we can say that from SDK 1.3 onward WebRole.cs and Web Application code run in a different application domain. So if we write or have code to Set Configuration setting in WebRole.cs then we are going to get the exception above.How to solve?
Create X.509 certificate for a Windows Azure Web Role
Connecting Microsoft Access to SQL Azure