I'm in the process of upgrading an existing ASP.NET2.0 application to .NET3.5 (moving from VS2005 to 2008 - yes I know I'm late!) and have encountered a problem with Crystal Reports.
Basically the following line of code causes the Webdev.WebServer.exe to close and the application to crash (I'm returned to VS).
CrystalDecisions.CrystalReports.Engine.ReportDocument rd = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
The line is in a Try/Catch but no exception is thrown at this point.
I've tried creating a new project just containing this line and it too crashes - so it's not the application itself.
I then tried using an older version of the dll (10.5.3700.0 instead of 11.5.3700.0) and it works fine in the dummy application. Obviously I'd rather not downgrade the real application but doing so does resolve the problem (I need to downgrade other CR dlls as well so it might have knock on effects in the application).
I cannot find any references to a later version of the DLLs and have downloaded the latest runtime package for VS2008 from Crystal Reports but this has made no difference - although the installer seemed to do nothing the Event Viewer confirms that installation was succesful.
Has anyone else experienced this or know of a way around it - apart from downgrading the dlls?
[Edit] I've been able to get around the problem by turning off Data Execution Prevention but this is not a viable solution - I have hardly tell the customer to do that! Besides, everything was running fine in VS2005/.NET2.0!