Stack Trace:
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) +0 System.Reflection.Assembly.GetTypes() +205 FastReport.Utils.Config.ProcessAssembly(Assembly a) +19 FastReport.Utils.Config.LoadPlugins() +51 FastReport.Utils.Config.Init() +215 [TypeInitializationException: The type initializer for 'FastReport.Report' threw an exception.] FastReport.Report..ctor() +0 FastReport.Web.ReportTab..ctor() +35 FastReport.Web.WebReport.InitTabs() +113 FastReport.Web.WebReport.get_Prop() +16 FastReport.Web.WebReport.WebReportInit(Boolean inlineRegistration, Boolean stretched) +341 ASP.printcontractpreview_test_three_aspx.__BuildControlWebReport1() in D:inetpubwwwrootLSWFSVCPrintContractPreview_test_three.aspx:18 ASP.printcontractpreview_test_three_aspx.__BuildControlPanel1() in D:inetpubwwwrootLSWFSVCPrintContractPreview_test_three.aspx:17 ASP.printcontractpreview_test_three_aspx.__BuildControlform1() in D:inetpubwwwrootLSWFSVCPrintContractPreview_test_three.aspx:11 ASP.printcontractpreview_test_three_aspx.__BuildControlTree(printcontractpreview_test_three_aspx __ctrl) in D:inetpubwwwrootLSWFSVCPrintContractPreview_test_three.aspx:1 ASP.printcontractpreview_test_three_aspx.FrameworkInitialize() +126 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +55 System.Web.UI.Page.ProcessRequest() +91 System.Web.UI.Page.ProcessRequest(HttpContext context) +240 ASP.printcontractpreview_test_three_aspx.ProcessRequest(HttpContext context) +52 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171 |
参考:https://social.msdn.microsoft.com/Forums/windowshardware/en-US/5e6ed4b0-52f6-43bd-9d65-c8e89959ca54/the-type-initializer-for-crystaldecisionscrystalreportsenginereportdocument-threw-an-exception?forum=vscrystalreports
IIS -->select Application Pools -> Advanced Settings -> Enable 32-Bit Application = True.



