Server Error in '/' Application.

Operator '*' is not defined for type 'DBNull' and type 'Double'.

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: Operator '*' is not defined for type 'DBNull' and type 'Double'.

Source Error:


Line 1310:							 If IsDBNull(Recordset1.Fields.Item("O_ORT").Value) = false Then 
Line 1311:							   if sStandort = "Brüttisellen/Zürich" OR (Recordset1.Fields.Item("O_ORT").Value) = "Brüttisellen/Zürich" OR Instr(LCase(Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")),"ch") OR art = "a_promo_ch" OR cc = "ch" or Request.ServerVariables("server_name")="training.inneo.ch" Then %>
Line 1312:                                    <font color="#a80f2a">CHF <%=FORMATNUMBER(((Recordset1.Fields.Item("KE_SFR").Value)* 0.5),2)%></font>
Line 1313:                                    <% else %>
Line 1314:                                    <font color="#a80f2a">EUR <%=FORMATNUMBER(((Recordset1.Fields.Item("K_PREIS_EU").Value)* 0.5),2)%></font>

Source File: C:\inetpub\wwwroot\training\uebersicht-all-de.aspx    Line: 1312

Stack Trace:


[InvalidCastException: Operator '*' is not defined for type 'DBNull' and type 'Double'.]
   Microsoft.VisualBasic.CompilerServices.Operators.MultiplyObject(Object Left, Object Right) +2880
   ASP.uebersicht_all_de_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\wwwroot\training\uebersicht-all-de.aspx:1312
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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