title: Microsoft.Office.Interop.Word library is giving Null Reference Exception when I am refrencing Missing Value in ASP.Net
body: <pre><code>Application msWord = new Microsoft.Office.Interop.Word.Application();
  Document doc;
  object objMiss = System.Reflection.Missing.Value;
  object endofdoc = "\\endofdoc";
  
  protected void Page_Load(object sender, EventArgs e)
  {
  
      if (!IsPostBack)
      {
  
          // add blank documnet in word application
  
          doc = msWord.Documents.Add(ref objMiss, ref objMiss, ref objMiss, ref objMiss);
       Microsoft.Office.Interop.Word.Paragraph para1;
  
          // add paragraph with document
  
          para1 = doc.Content.Paragraphs.Add(ref objMiss);
     }
  </code></pre>
  
  <p>}</p>
  
  <p>When I am assigning to para1, it is giving error -
  Object reference not set to an instance of an object. </p>
  
  <p>On my local machine it is working fine. But on Remote it is giving errors. 
  Note- MS Office is installed on server.</p>