I have 2 visual studio 2010 projects that use Crystal reports ver 13.02 differently.
1 works and the other is getting an object reference not set to an instance of an object error.
The first app, I developed from the ground up as a web application, that uses several existing crystal reports and are working using the crystal reports viewer. Its is a web application project using asp.net 4.0 framework in c#.
The other project was an older VB website project that I upgraded from .net 2.0 to 4.0 and was working fine until I had to upgrade it to 13.02. This project does not use the viewer but only prints the data to the report. On my development laptop under visual studio it runs and prints fine, but not when published to both my laptop's IIS 7.5 and the server's IIS 7.5.
I get this error and have exhausted every possible option. It can't be the driver as the web applications project works fine on both my machine and the server. I'm suspicious that I will be forced to convert the project to a web applications project before an answer is found... but would prefer to find an answer to resolve it as it is.
Update After further debugging I have discovered that the problem is the PrintToPrinter method that, again, works fine in development mode, but not when published.