title: Open Notepad from Silverlight 4 Business Application
body: <p>I have a Silvleright Business Application, <code>Silverlight_BussApp</code>.
  It has the <code>Silverlight_BussApp</code> project and the <code>Silverlight_BussApp.Web</code> project.</p>
  
  <p>I need to open Notepad after populating it in the code behind on a button click event.
  I cannot make this an out of browser application.</p>
  
  <p>So since Silverlight does not allow me to do it, I created a WCF Service in the <code>Silverlight_BussApp.Web</code> project 
  and invoked it through a proxy in the Silverlight Project. <strong>This works fine.</strong>
  The code in the WCF Service is:</p>
  
  <pre><code>  public void openFileWithNotepad(string filename)
          {
              try
              {
                  if (File.Exists(filename))
                  {
                      Process.Start("notepad.exe", filename);
                  }
                  else
                  {
                      MessageBox.Show(
                             "I was unable to locate the following file: " + filename,
                             "File Not Found");
                  }
  
              }
              catch (Exception e)
              {
                  throw e;
              }
          }
  </code></pre>
  
  <p>Now I need to use this <code>openFile</code> functionality in more than one Silverlight Project.
  So I created a "WCF service Project" and created a WCF Service, hosted it on IIS, and created a proxy in the Silverlight project. To my dismay, the file does not open and it keeps giving me the "File Not Found" Error.
  Can somebody help me figure out how I can make this a reusable functionality for all my Silverlight projects? </p>
  
  <p>Why is it when I use the same code in a WCF Service hosted on IIS it does not work while it works perfectly when hosted in the same solution of the Silverlight project?</p>