Unhandled expection
Hi!
I get following unhandled exception when trying to open .frx-file with Fastreport.Net Designer (version 1.9.1):
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at FastReport.Utils.Converter.ToXml(String s, Boolean convertCrlf)
at FastReport.Utils.FRWriter.WriteStr(String name, String value)
at FastReport.TextObjectBase.Serialize(FRWriter writer)
at FastReport.TextObject.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Base.Serialize(FRWriter writer)
at FastReport.ComponentBase.Serialize(FRWriter writer)
at FastReport.ReportComponentBase.Serialize(FRWriter writer)
at FastReport.BreakableComponent.Serialize(FRWriter writer)
at FastReport.BandBase.Serialize(FRWriter writer)
at FastReport.DataBand.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Base.Serialize(FRWriter writer)
at FastReport.ComponentBase.Serialize(FRWriter writer)
at FastReport.ReportPage.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Report.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Design.UndoRedo.SaveReport(Stream stream)
at FastReport.Design.UndoRedo.AddUndo(String name, String objName)
at FastReport.Design.ReportTab.InitReport()
at FastReport.Design.ReportTab.LoadFile(String fileName)
at FastReport.Design.OpenCommand.LoadFile(String fileName)
at DevComponents.DotNetBar.BaseItem.RaiseClick(eEventSource source)
at DevComponents.DotNetBar.BaseItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.PopupItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.ButtonItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.MenuPanel.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevComponents.DotNetBar.MenuPanel.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
Designer
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/FastReports/FastReport.Net/Designer.exe
FastReport
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FastReport/1.9.1.0__db7e5ce63278458c/FastReport.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
FastReport.Bars
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FastReport.Bars/1.9.1.0__db7e5ce63278458c/FastReport.Bars.dll
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
FastReport.Editor
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FastReport.Editor/1.9.1.0__db7e5ce63278458c/FastReport.Editor.dll
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5459 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
This occurs only with one file others work fine.
I get following unhandled exception when trying to open .frx-file with Fastreport.Net Designer (version 1.9.1):
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at FastReport.Utils.Converter.ToXml(String s, Boolean convertCrlf)
at FastReport.Utils.FRWriter.WriteStr(String name, String value)
at FastReport.TextObjectBase.Serialize(FRWriter writer)
at FastReport.TextObject.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Base.Serialize(FRWriter writer)
at FastReport.ComponentBase.Serialize(FRWriter writer)
at FastReport.ReportComponentBase.Serialize(FRWriter writer)
at FastReport.BreakableComponent.Serialize(FRWriter writer)
at FastReport.BandBase.Serialize(FRWriter writer)
at FastReport.DataBand.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Base.Serialize(FRWriter writer)
at FastReport.ComponentBase.Serialize(FRWriter writer)
at FastReport.ReportPage.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Report.Serialize(FRWriter writer)
at FastReport.Utils.FRWriter.Write(IFRSerializable obj, Object diff)
at FastReport.Design.UndoRedo.SaveReport(Stream stream)
at FastReport.Design.UndoRedo.AddUndo(String name, String objName)
at FastReport.Design.ReportTab.InitReport()
at FastReport.Design.ReportTab.LoadFile(String fileName)
at FastReport.Design.OpenCommand.LoadFile(String fileName)
at DevComponents.DotNetBar.BaseItem.RaiseClick(eEventSource source)
at DevComponents.DotNetBar.BaseItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.PopupItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.ButtonItem.InternalMouseUp(MouseEventArgs objArg)
at DevComponents.DotNetBar.MenuPanel.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevComponents.DotNetBar.MenuPanel.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
Designer
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/FastReports/FastReport.Net/Designer.exe
FastReport
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FastReport/1.9.1.0__db7e5ce63278458c/FastReport.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
FastReport.Bars
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FastReport.Bars/1.9.1.0__db7e5ce63278458c/FastReport.Bars.dll
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
FastReport.Editor
Assembly Version: 1.9.1.0
Win32 Version: 1.9.1.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/FastReport.Editor/1.9.1.0__db7e5ce63278458c/FastReport.Editor.dll
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5459 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
This occurs only with one file others work fine.