 <p>OnStart (Role) is in another process than your web page (pages, Global.asax ..). At least when using <a href="http://blogs.msdn.com/b/windowsazure/archive/2010/12/02/new-full-iis-capabilities-differences-from-hosted-web-core.aspx" rel="nofollow">Full IIS mode</a>.</p>