title: Excel Add-In not working after publish
body: <p>I've created an Excel COM Add-In in <code>C#</code> using <code>Visual Studio 2013 Professional</code> which displays a <code>CustomTaskPane</code> as a right sidebar in Excel.</p>
  
  <p>This is working perfect when running it directly from the IDE, but not working when installing it from the <code>setup</code> file generated when I published the solution.</p>
  
  <p>The Add-In <code>MyAddIn</code> appears in the Add-Ins list, but it stays Inactive at all times when I try to activate it by pressing the <code>Go...</code> button at the bottom and then mark the add-in to activate it.</p>
  
  <p>Any solution would help me a lot...
  <a href="https://i.stack.imgur.com/IANPx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IANPx.jpg" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>This problem is caused by the Settings configured in the project<br>
  <a href="https://i.stack.imgur.com/7vqnT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7vqnT.jpg" alt="enter image description here"></a></p>
  
  <p>This is how is use them:</p>
  
  <pre><code>public UserControlSDR()
  {
      InitializeComponent();
      string settingAdbKey = Properties.Settings.Default.adbeKey;
      string settingAdbUser = Properties.Settings.Default.adbeUser;
      string settingOpKey = Properties.Settings.Default.opKey;
  
      textBoxAdbKey.Text = settingAdbKey.Substring(settingAdbKey.LastIndexOf(":") + 2);
      textBoxAdbUser.Text = settingAdbUser.Substring(settingAdbUser.LastIndexOf("Text: ") + 6);
      textBoxOpKey.Text = settingOpKey.Substring(settingOpKey.LastIndexOf(":") + 1);
  }
  </code></pre>
  
  <p>If I remove the code below <code>InitializeComponent()</code> everything works fine ... why?</p>