I have occured strange error during creation of new report definition.
When I click OK after specifying report name, type, target paths/identities the "Report Definitions" site prints error.
I can make this site usable again by deleting records from database tables "report_definiotion_targets" and "report_definitions". But, when I try to create any new report definition error is the same.
An unexpected error was encountered.
Please retry the operation, and if the error persists, contact the system administrator.
Error Message:
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> NHibernate.Exceptions.GenericADOException: could not execute query
[ SELECT this_.id as id3_1_, this_.report_type as report2_3_1_, this_.report_name as report3_3_1_, this_.create_time as create4_3_1_, this_.modify_time as modify5_3_1_, this_.report_parameters as report7_3_1_, this_.description as descript8_3_1_, this_.creator as creator3_1_, this_.priority as priority3_1_, this_.fsf_policies as fsf11_3_1_, reportsche2_.Id as Id6_0_, reportsche2_.start_date as start2_6_0_, reportsche2_.time_offset as time3_6_0_, reportsche2_.recurrence as recurrence6_0_, reportsche2_.day_of_week as day5_6_0_, reportsche2_.monthly_recurrence as monthly6_6_0_, reportsche2_.day_of_month as day7_6_0_, reportsche2_.month_ordinal as month8_6_0_, reportsche2_.month_ordinal_day as month9_6_0_, reportsche2_.report_definition_id as report10_6_0_ FROM report_definitions this_ left outer join report_schedule reportsche2_ on this_.id=reportsche2_.report_definition_id ]
[SQL: SELECT this_.id as id3_1_, this_.report_type as report2_3_1_, this_.report_name as report3_3_1_, this_.create_time as create4_3_1_, this_.modify_time as modify5_3_1_, this_.report_parameters as report7_3_1_, this_.description as descript8_3_1_, this_.creator as creator3_1_, this_.priority as priority3_1_, this_.fsf_policies as fsf11_3_1_, reportsche2_.Id as Id6_0_, reportsche2_.start_date as start2_6_0_, reportsche2_.time_offset as time3_6_0_, reportsche2_.recurrence as recurrence6_0_, reportsche2_.day_of_week as day5_6_0_, reportsche2_.monthly_recurrence as monthly6_6_0_, reportsche2_.day_of_month as day7_6_0_, reportsche2_.month_ordinal as month8_6_0_, reportsche2_.month_ordinal_day as month9_6_0_, reportsche2_.report_definition_id as report10_6_0_ FROM report_definitions this_ left outer join report_schedule reportsche2_ on this_.id=reportsche2_.report_definition_id] ---> System.InvalidCastException: Specified cast is not valid.
at NpgsqlTypes.NpgsqlTimeStampTZ.op_Explicit(NpgsqlTimeStampTZ timestamp)
at NpgsqlTypes.NpgsqlTypesHelper.<TypeInfoList>b__10(Object timestamptz)
at NpgsqlTypes.NpgsqlBackendTypeInfo.ConvertToFrameworkType(Object providerValue)
at Npgsql.ForwardsOnlyDataReader.GetValue(Int32 Index)
at NHibernate.Type.NullableType.NullSafeGet(IDataReader rs, String name)
at NHibernate.Persister.Entity.AbstractEntityPersister.Hydrate(IDataReader rs, Object id, Object obj, ILoadable rootLoadable, String[][] suffixedPropertyColumns, Boolean allProperties, ISessionImplementor session)
at NHibernate.Loader.Loader.LoadFromResultSet(IDataReader rs, Int32 i, Object obj, String instanceClass, EntityKey key, String rowIdAlias, LockMode lockMode, ILoadable rootPersister, ISessionImplementor session)
at NHibernate.Loader.Loader.InstanceNotYetLoaded(IDataReader dr, Int32 i, ILoadable persister, EntityKey key, LockMode lockMode, String rowIdAlias, EntityKey optionalObjectKey, Object optionalObject, IList hydratedObjects, ISessionImplementor session)
at NHibernate.Loader.Loader.GetRow(IDataReader rs, ILoadable[] persisters, EntityKey[] keys, Object optionalObject, EntityKey optionalObjectKey, LockMode[] lockModes, IList hydratedObjects, ISessionImplementor session)
at NHibernate.Loader.Loader.GetRowFromResultSet(IDataReader resultSet, ISessionImplementor session, QueryParameters queryParameters, LockMode[] lockModeArray, EntityKey optionalObjectKey, IList hydratedObjects, EntityKey[] keys, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)
--- End of inner exception stack trace ---
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)
at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters)
at NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session)
at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
at NHibernate.Impl.CriteriaImpl.List(IList results)
at NHibernate.Impl.CriteriaImpl.List()
at WebUI.app.Reports.ReportDefinitions.LoadGridData()
at DevExpress.Web.ASPxGridView.ASPxGridView.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean