سلام
کسی با فست ریپورت به این مشکل خورده تا حالا:
C# Winform An unhandled exception of type 'System.TypeInitializationException' occurred in FastReport.dll Additional information: The type initializer for 'FastReport.Design.PageDesigners.Page.ReportWorkspace' threw an exception.
یهویی شده! هیچ نوع دستکاری دیتایی هم نداشتم.
بکاپ بدون ایراد هم ریستور کردم بازم همینه.
اکسپشنارو که تیک میزنم کامل این باگ رو دارم:
Exception thrown: 'System.FormatException' in mscorlib.dll Additional information: Input string was not in a correct format.
کلا گزارش خالی رو هم بدون دیتا سورس میگیرم همینه.
فایل کانفیگ مربوط به فست ریپورت رو هم پاک کردم بازم جواب نگرفتم و همین مشکل.
این تصویر رو ببینید:
این هم اروری هست که در زیر اونه:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.TypeInitializationException: The type initializer for 'FastReport.Design.PageDesigners.Page.ReportWorkspace' threw an exception. ---> System.FormatException: Input string was not in a correct format. at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt) at FastReport.Utils.Converter.FromString(Type type, String value) at FastReport.Utils.Converter.StringToFloat(String value, String separator) at FastReport.Utils.Converter.StringToFloat(String value) at FastReport.Design.PageDesigners.Page.ReportWorkspace..cctor() --- End of inner exception stack trace --- at FastReport.BandBase.PointInObject(PointF point) at FastReport.ReportPage.HitTest(PointF mouse) at FastReport.Preview.PreviewWorkspace.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at FastReport.Preview.PreviewWorkspace.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- TestApp Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///E:/Advertising%20Software/AdvertisingCMSC%23/AdvertisingApp/AdvertisingApp/bin/Debug/AdvertisingApp.exe ---------------------------------------- System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Data.DataSetExtensions Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll ---------------------------------------- System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- FastReport Assembly Version: 2019.3.26.0 Win32 Version: 2019.3.26.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/FastReport/v4.0_2019.3.26.0__db7e5ce63278458c/FastReport.dll ---------------------------------------- FastReport.Bars Assembly Version: 2019.3.26.0 Win32 Version: 2019.3.26.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/FastReport.Bars/v4.0_2019.3.26.0__db7e5ce63278458c/FastReport.Bars.dll ---------------------------------------- System.Windows.Forms.DataVisualization Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll ---------------------------------------- Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll ---------------------------------------- System.Transactions Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll ---------------------------------------- System.Runtime.Caching Assembly Version: 4.0.0.0 Win32 Version: 4.7.2046.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Caching/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
این جواب رو میگذارم برای اونهایی که تا ویندوز 10 به این مشکل برخوردن و میخوان حلش کنن:
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)