title: 'Application.Restart' not working in ClickOnce deployed application
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/95098/why-is-application-restart-not-reliable">Why is Application.Restart() not reliable?</a>  </p>
  </blockquote>
  
  
  
  <p>I pulled <a href="http://msdn.microsoft.com/en-us/library/ms404263.aspx" rel="nofollow noreferrer">the code straight from MSDN</a>. This updates my application, but <code>Restart()</code> does not work. The application shuts down, but it does not restart. </p>
  
  <p>I added a <code>MenuItem</code> to my <code>Form</code> to validate that <code>Restart()</code> works at all: </p>
  
  <pre><code>private void restartToolStripMenuItem_Click(object sender, EventArgs e)
  {
      Application.Restart();
  }
  </code></pre>
  
  <p>This will restart the application (of course, it performs no updates and is user initiated, so it is fairly useless). </p>
  
  <p>I have nothing else going on with this application. No event handlers for the Form on shutdown, nothing. This is the most basic <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="nofollow noreferrer">Windows Forms</a> application I could build (it just displays a resource <a href="http://en.wikipedia.org/wiki/JPEG" rel="nofollow noreferrer">JPEG</a> in an <code>ImagePanel</code>). </p>
  
  <p>Why does <code>Restart()</code> not work here? </p>