title: ClickOnce deployment & settings file
body: <p>I have a problem with a clickonce deployed application.
  When I try to read somethink from the settings file, application crash.</p>
  
  <p>The line of the code in my project is:</p>
  
  <pre><code>CurrentLogin = Properties.Settings.Default.LastLogin;
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Event Type: Error
  Event Source:   .NET Runtime
  Event Category: None
  Event ID:   1026
  Date:       16.02.2011
  Time:       14:02:35
  User:       N/A
  Computer:   W-MD-IS-6393
  Description:
  Application: BlaBlaBla.exe
  Framework Version: v4.0.30319
  Description: The process was terminated due to an unhandled exception.
  Exception Info: System.IO.IOException
  Stack:
     at MS.Internal.AppModel.ResourcePart.GetStreamCore(System.IO.FileMode, System.IO.FileAccess)
     at System.IO.Packaging.PackagePart.GetStream(System.IO.FileMode, System.IO.FileAccess)
     at System.IO.Packaging.PackagePart.GetStream()
     at System.Windows.Application.LoadComponent(System.Object, System.Uri)
     at BlaBlaBla.App.InitializeComponent()
     at BlaBlaBla.App.Main()
  </code></pre>
  
  <p>Thank you in advance for your answers.</p>