Server Error in '/' Application.

Specified cast 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: Specified cast is not valid.

Source Error:


Line 96:         plh_FullView.Visible = false;
Line 97: 
Line 98:         newsDate.InnerHtml = ((DateTime)data["Date"]).ToString(ModuleSettings["DateFormat"]);
Line 99:         newsText.Text = (data["FullText"]??"").ToString();
Line 100:        fullListLink.HRef = Query.Default("page", "pg", "lang");

Source File: d:\Inetpub\test_photonics_ru\Moduls\News\client.ascx.cs    Line: 98

Stack Trace:


[InvalidCastException: Specified cast is not valid.]
   Moduls_News_client.ShowSelectedNews() in d:\Inetpub\test_photonics_ru\Moduls\News\client.ascx.cs:98
   Moduls_News_client.LoadData() in d:\Inetpub\test_photonics_ru\Moduls\News\client.ascx.cs:83
   Moduls_News_client.Page_Load(Object sender, EventArgs e) in d:\Inetpub\test_photonics_ru\Moduls\News\client.ascx.cs:47
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3668