Server Error in '/' Application.

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:


Line 11: public partial class _Default : System.Web.UI.Page
Line 12: {
Line 13:     SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["orisha_EX"].ToString());
Line 14:     protected void Page_Load(object sender, EventArgs e)
Line 15:     {

Source File: c:\inetpub\wwwroot\bseodisha\$$formfillup2021$$\Default.aspx.cs    Line: 13

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _Default..ctor() in c:\inetpub\wwwroot\bseodisha\$$formfillup2021$$\Default.aspx.cs:13
   ASP.bseodisha___formfillup2021___default_aspx..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_fay5nc0w.2.cs:0
   __ASP.FastObjectFactory_app_web_fay5nc0w.Create_ASP_bseodisha___formfillup2021___default_aspx() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_fay5nc0w.36.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +31
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +100
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +339
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0