title: ASP.NET Solution Deployment to Development Server uses Local Paths
body: <p>Using Visual Studio 2010, I deployed my ASP.NET project to a development server and changed the Web.Config to reflect the development server paths. Some of the code is working, but for paths like images and other files, it seems to be looking at the local path of my machine. I looked all around the code for a hint at where it's using my local path, but I replaced all of them and it's still not working.</p>
  
  <p>The DLLs are all compiled in the correct place, everything is up to date, etc. No problems running the code locally, either. Is there a specific step to ensure the deployment that I'm missing?</p>
  
  <p>Thanks.</p>
  
  <p>Error:</p>
  
  <pre><code>`Object reference not set to an instance of an object. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
  Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
  
  Source Error: 
  
  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
  
  Stack Trace: 
  
  
  [NullReferenceException: Object reference not set to an instance of an object.]
     FieldControl(String FieldType, String Argument, Field ParentField) in D:\Users\mydirectory\FieldControl.cs:132
     &lt;more of these&gt;
  </code></pre>