Server Error in '/' Application.

A referência de objecto não foi definida como uma instância de um objecto.

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: A referência de objecto não foi definida como uma instância de um objecto.

Source Error:


Line 1190:        ClassLibrary.ITaxaIVA ti = ClassLibrary.Factory.CreateTaxaIVAService();
Line 1191:        DataSet ds_ti = ti.GetByID(idtaxaiva);
Line 1192:        DataRow dr_ti = (DataRow)ds_ti.Tables["TaxasIVA"].Rows[0];
Line 1193:        double valorIVA = double.Parse(dr_ti["Valor"].ToString()) / 100;
Line 1194:        hiddenValorIVA.Value = valorIVA.ToString();

Source File: c:\HostingSpaces\jpmi\jp-mi.com\wwwroot\catalogo.aspx.cs    Line: 1192

Stack Trace:


[NullReferenceException: A referência de objecto não foi definida como uma instância de um objecto.]
   catalogo.bindRegisto() in c:\HostingSpaces\jpmi\jp-mi.com\wwwroot\catalogo.aspx.cs:1192
   catalogo.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\jpmi\jp-mi.com\wwwroot\catalogo.aspx.cs:166
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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