Uninstall Crystal: 'Crystal Reports Tools Package' package did not load correctly - Visual Studio 2022

Michael Jenkins 20 Reputation points
2023-02-22T19:24:39.12+00:00

My Visual Studio Community Edition 2022 project no longer uses Crystal Reports. I have completely uninstalled the CR tools from my PC and I removed all references to crystal reports dlls in my project. But every time I open the project I get an error dialog that says "The Crystal Reports Tools Package did not load correctly" - I get it twice.

I've tried text searching the entire solution directory, rebuilding from scratch, and even uninstalling/reinstalling VS.

[enter image description here

](https://i.stack.imgur.com/eP6U1.png)

I don't have the issue in other projects. It is just the project that used to use Crystal. This is driving me a little nuts. I know I can suppress the error. But I want to understand where it is coming from. I don't like the fact that there is a reference to something in my project that I cannot trace.

This is the entry in the referenced log file:

<entry>
<record>303</record>
<time>2023/02/22 17:00:46.698</time>
<type>Error</type>
<source>VisualStudio</source>
<description>No InprocServer32 registered for package [Crystal Reports Tools Package]</description>
<guid>{FE73BB80-53F4-4AD0-A5F9-6A0BCE662292}</guid>
<hr>0x8007007e</hr>
<errorinfo></errorinfo>
<path>C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\CRVsPackage.dll</path>
</entry>

Any help in understanding/solving this would be appreciated.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,118 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 28,846 Reputation points Microsoft Vendor
    2023-02-23T03:54:29.59+00:00

    Hi @Michael Jenkins

    Welcome to Microsoft Q&A! 

    What is your project type? 

    Please cleanly uninstall the SAP Crystal Reports from Control Panel > Add or Remove Programs

    Besides, please check if you have Crystal Reports NuGet Packages installed. You can right click on your project > click ‘Manage NuGet Packages…’ > Installed > search for ‘CrystalReports’ > select it to Uninstall.

    Meanwhile, check if there are the Crystal Report assembly references to the project by right click on ‘References’ > Add References > Assemblies. If you can find, please uncheck them. 

    You can close all running VS instances and try to delete the hidden .vsbin and obj folders in the project folder.

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.