title: Object reference not set to an instance of an object on build web site
body: <p>I have a web site that is just serving as a Remoting Server and has remoting configuration inside its <code>web.config</code> file.</p>
  
  <pre><code>&lt;system.runtime.remoting&gt;
      &lt;application&gt;
        &lt;service&gt;
          &lt;activated type="abc.def.ghi"/&gt;
        &lt;/service&gt;
        &lt;channels&gt;
          &lt;channel ref="http" machineName="localhost"/&gt;
        &lt;/channels&gt;
      &lt;/application&gt;
    &lt;/system.runtime.remoting&gt;
  </code></pre>
  
  <h1>Besides this web.config file, it has only these files in it:</h1>
  
  <p>dataConfiguration.config<br>
  enterpriseLibrary.config<br>
  log.config<br>
  website.publishproj<br>
  bin folder - which has the DLLs that are served from this project via remoting</p>
  
  <p>When I build the web site, I receive build error which is:</p>
  
  <blockquote>
    <p>"object reference not set to an instance of an object".</p>
  </blockquote>
  
  <p>How can I debug what's causing this error and how to remove it?</p>
  
  <p>Please advise.</p>