My project was developed by Visual Studio 2013 which is using Crystal Report under SP21. Currently I migrated to use Visual Studio 2017 and installed Crystal Report SP24. The application is able to execute without any issue. However, once I print report by Crystal Report, w3wp.exe was crashed. It is happening in my localhost.
rptGrn.Load(HttpContext.Current.Server.MapPath("~/Reports/GRNRecords.rpt"));
rptGrn.SetDataSource(SSRecordHdrs); //error
rptGrn.Subreports["GRNDetails"].SetDataSource(lsDtls); //error
I tried the solution by add setting in web.config but no luck on this and it didn't working.
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
I have scratch my head one week for this issue. I'm appreciate any help or comment that giving clues to solve this issue.
Thank you very much.
Setup: - WebForm application - .NET 3.5 - Visual Studio 2017 - IIS 10 (Localhost)