Server Error in / Application in asp.net (the same code is working fine in test server)
<p>I am getting the following error when i publish the website code.</p>

<p>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. </p>

<p>Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.</p>

<p>Source Error: </p>

<p>[No relevant source lines]</p>

<p>Source File: c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\dubs_test\4fc875e9\c05ca91a\App_Web_dataentry.aspx.cdcab7d2.v9c2efde.0.cs    Line: 0 </p>

<p>Stack Trace: </p>

<blockquote>
  <p>[NullReferenceException: Object reference not set to an instance of an
  object.]    DataEntry..ctor() +96    ASP.dataentry_aspx..ctor() in
  c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
  Files\dubs_test\4fc875e9\c05ca91a\App_Web_dataentry.aspx.cdcab7d2.v9c2efde.0.cs:0
  __ASP.FastObjectFactory_app_web_dataentry_aspx_cdcab7d2_v9c2efde.Create_ASP_dataentry_aspx()
  in c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
  Files\dubs_test\4fc875e9\c05ca91a\App_Web_dataentry.aspx.cdcab7d2.v9c2efde.1.cs:0
  System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath
  virtualPath, Type requiredBaseType, HttpContext context, Boolean
  allowCrossApp, Boolean noAssert) +146<br>
  System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context,
  String requestType, VirtualPath virtualPath, String physicalPath) +62 
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
  requestType, VirtualPath path, String pathTranslated, Boolean
  useAppConfig) +573<br>
  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
  +182    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +276</p>
</blockquote>
