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 44:         ClassLibrary.ILingua reg = ClassLibrary.Factory.CreateLinguaService();
Line 45:         DataSet ds = reg.GetByID(idlingua);
Line 46:         DataRow dr = (DataRow)ds.Tables["Linguas"].Rows[0];
Line 47:         string lingua = dr["Cultura"].ToString();
Line 48: 

Source File: c:\inetpub\vhosts\francaaraujogas.com\httpdocs\catalogo.aspx.cs    Line: 46

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   catalogo.InitializeCulture() in c:\inetpub\vhosts\francaaraujogas.com\httpdocs\catalogo.aspx.cs:46
   ASP.catalogo_aspx.__BuildControlTree(catalogo_aspx __ctrl) in c:\inetpub\vhosts\francaaraujogas.com\httpdocs\catalogo.aspx:1
   ASP.catalogo_aspx.FrameworkInitialize() in c:\inetpub\vhosts\francaaraujogas.com\httpdocs\catalogo.aspx.cs:912307
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +76
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +24
   System.Web.UI.Page.ProcessRequest(HttpContext context) +62
   ASP.catalogo_aspx.ProcessRequest(HttpContext context) in c:\inetpub\vhosts\francaaraujogas.com\tmp\root\fe6866a7\bba05a9f\App_Web_catalogo.aspx.cdcab7d2.ev5zej3l.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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