Skip to Content
avatar image
Former Member

Visual Studio .NET 2003 Crystal Reports Errors

We have a program that was developed in Visual Studio .NET 2003 using VB.

It has been running for at least 3 years without any errors on an IBM 346 server with Windows Server 2003 (at 12 different locations). When the server at one of the locations was replaced with a brand new HP ProLiant DL380 G6, we started getting some weird error messages.

Here are the errors that we see during the Printing of the reports:

System.NullReferenceException: Object reference not set to an instance of an object.

CrystalDecisions.CrystalReports.Engine.InvalidArgumentException: Error in File C:\DOCUME1\ADMINI1\LOCALS~1\Temp\temp_4f42305d-3c2a-4929-88e1-d2884e368c54.rpt:

Invalid printer specified.

Please note that the reports are printed on average four times an hour. The errors are intermittent. The printing could be fine for the first print job, the second one will generate one of the errors, and the third one right after could be fine. Each time the code is the same, just calling different report files.

Please help! I've been banging my head against the wall for weeks on this one! I've already upgraded the Crystal Reports Runtime on the affected server to the latest patch: CRNET11WIN (https://smpdl.sap-ag.de/~sapidp/012002523100006007652008E/crnet11win_en.pdf). This patch did help a little bit. I don't see the errors as often. Maybe once or twice every 2 days. It used be at least twice a day prior to this patch. We also had some other error message prior to applying this patch, which was:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> CrystalDecisions.CrystalReports.Engine.InternalException: Error in File C:\DOCUME1\ADMINI1\LOCALS~1\Temp\temp_7a62bc6a-4940-4c9e-a9c6-fd85187eb944.rpt:

The request could not be submitted for background processing.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 12, 2010 at 05:34 PM

    Compare the DLLs loading on a good server and the HP server. Look at the database client, framework and system files. Use [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] to do the comparisons. I realize you are using the same code, b ut make sure you are closing and disposing the report objects.

    Consider upgrading to CR XI r2. This would be a major change as you would have to recompile the app and do a new runtime distribution. CR XI r2 is here:

    https://smpdl.sap-ag.de/~sapidp/012002523100006008462008E/crxir2.zip

    Let me know if that is a possibility and I'll send you more info.

    I am not sure if you are still getting both error messages, but have a look at [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33] article for possible clues.

    Compare the printer drivers. If the default printer drivers are different, make sure you have the latest update on the HP box.

    Ludek

    Follow us on Twitter http://twitter.com/SAPCRNetSup

    Add comment
    10|10000 characters needed characters exceeded

    • If this turns out to be a CR bug, you will get a refund, so no worries there.

      Re. image. Once you have a phone case created the technician may ask for the image. But that will be up to them.

      Ludek