Server Error in '/' Application.

Conversion from string "" to type 'Decimal' is not valid.

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.InvalidCastException: Conversion from string "" to type 'Decimal' is not valid.

Source Error:


Line 191:
Line 192:                    Dim strListCijenaHr As String = dtr("ListCijenaHr").ToString
Line 193:                    Dim ListCijenaHr As Decimal = CType(strListCijenaHr, Decimal)
Line 194:                    ListCijenaHr = ListCijenaHr.ToString("f")
Line 195:                    lblListPriceValue.Text = "€" & ListCijenaHr & ""

Source File: D:\HostingSpaces\provoxhr\provox.hr\audio\proizvod.aspx.vb    Line: 193

Stack Trace:


[InvalidCastException: Conversion from string "" to type 'Decimal' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(String Value, NumberFormatInfo NumberFormat) +337
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(String Value) +6
   audio_proizvod.Page_Load(Object sender, EventArgs e) in D:\HostingSpaces\provoxhr\provox.hr\audio\proizvod.aspx.vb:193
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762