title: Application identity not set Exception
body: <p>I have just converted a project to VS2010 and I now starting to see Exceptions in my software in IntelliTrace.</p>
  
  <p>One such Exception is 'Application identity is not set', this occurs whenever my software see's something like</p>
  
  <pre><code>string m_AppPath = Application.UserAppDataPath;
  </code></pre>
  
  <p>This isn't a problem as the AppDataPath returns correctly, I'm just wondering why this happens.</p>
  
  <p>The code is in the Main function of Program.cs (if that makes a difference), once out of the Program.cs file and into MainWindow.cs the code works.</p>
  
  <p>My main issue is that I setup Logging prior to the application starting.  Any help appreciated as searching the web doesn't really help.</p>
  
  <p>Paul</p>