Server Error in '/' Application.

The given key was not present in the dictionary.

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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 20:             Dim prod As New cProduct(oSM)
Line 21:             prod.Load(idProduct)
Line 22:             bodBody.Attributes.Add("data-bibi-book", prod.Fields("pdfepubpreview_" + idlanguage).FieldContent)
Line 23:         End If
Line 24:     End Sub

Source File: D:\_SITES\midorieditora.pt - www\bibi\preview.aspx.vb    Line: 22

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +12974457
   sm_custom_preview.Page_Load(Object sender, EventArgs e) in D:\_SITES\midorieditora.pt - www\bibi\preview.aspx.vb:22
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2852


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