title: How to write a hello world add-in for Win 7 Media Center
body: <p>I want to write a simple hello world add in for Media Center on Windows 7, but I am having problems finding up to date functional documentation.  I found this page: <a href="http://blogs.msdn.com/b/mcreasy/archive/2004/10/12/241449.aspx" rel="nofollow">http://blogs.msdn.com/b/mcreasy/archive/2004/10/12/241449.aspx</a> which looks to be exactly what I need.  I implemented it and some of the interfaces it references are marked as obsolete, and even so when I try to launch it in media center is just pops up a dialog saying "unable to launch addin"</p>
  
  <p>I updated the namespace interfaces from using Microsoft.MediaCenter.AddIn to using Microsoft.MediaCenter.Hosting which looks to be the up to date namespace according to the sdk docs, but I still have the same problem.</p>
  
  <p>registering the assembly with the gac and with RegisterMCEApp both are successful, and I have unregistered and registered from both places in between builds.</p>
  
  <p>I strongly signed the assembly with a .snk file and got the public key token to update the registration.xml</p>
  
  <p>Can anyone either tell me what I am doing wrong or direct me to some up to date tutorial /docs?</p>
  
  <p>Here is the little bit of code I have:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using Microsoft.MediaCenter.Hosting;
  
  namespace MCPluginTakeTwo
  {
      public class HelloWorldAddIn: MarshalByRefObject, IAddInModule, IAddInEntryPoint
      {
          public void Initialize(Dictionary&lt;string, object&gt; appInfo, Dictionary&lt;string, object&gt; entryPointInfo)
          {
  
          }
  
          public void Uninitialize()
          {
  
          }
  
          public void Launch(AddInHost host)
          {
          }
      }
  }
  </code></pre>