I have issue with building solution in visual studio 2019 when installing Microsoft RDLC Report Designer

Deepa S 0 Reputation points
2024-08-07T11:39:18.3266667+00:00

The error :

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\v16.0\ReportingServices\Microsoft.ReportingServices.targets(24,2): error MSB4062: The "Microsoft.Reporting.RdlCompile" task could not be loaded from the assembly Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91. Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Installed the following https://www.microsoft.com/en-us/download/details.aspx?id=55992 as a workaround. But not worked

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2024-08-09T04:53:45.88+00:00

    Hello @Deepa S,

    Welcome to Microsoft Q&A forum.

    If you try to install this NuGet package: Microsoft.ReportingServices.ReportViewerControl.WebForms(the latest version), will it work?

    User's image

    If it doesn’t work, please try to clear NuGet cache by following this document: Clearing local folders. Remove the bin, obj and the hidden .vs folder in your solution/project folder. Reinstall the NuGet packages and the related components that you previously installed, rebuild your project.

    User's image

    If the error persists, please kindly let us know the complete steps that you did. If this issue is reproducible on a newly created project, kindly share us the steps to reproduce this issue and check further.

    Please don’t hesitate to reach out to us :)

    Best Regards,

    Tianyu


    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.