Error loading report.rdlc,Unable to copy bin\debug\

Roberto C 120 Reputation points
2024-04-24T20:48:56.4066667+00:00

Good afternoon again, I have already searched for information online, but I have not been able to find the error.

The error is the following:

An error occurred during local report processing. The report definition has not been specified, the file is not found in the bin\debug folder

Here is a more natural-sounding translation:

Good afternoon again, I've searched for information online but I can't find the solution to this error.

The error message is:

An error occurred during local report processing. The report definition has not been specified, the file is not found in the bin\debug folder.

Captura 5

I have installed these references, but I think I need to do something else.

Captura 6

Captura 7

On the other hand, I have the "Copy to output directory" property set to "Copy if newer" but it doesn't happen, it doesn't show any changes I've made. Please, where could my error be or what else should I install or uninstall? Thanks Roberto

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,940 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,015 questions
{count} votes

Accepted answer
  1. Jiale Xue - MSFT 46,466 Reputation points Microsoft Vendor
    2024-04-25T06:52:31.0566667+00:00

    Hi @Roberto C ,Welcome to Microsoft Q&A,

    Make sure that the report file (.rdlc file) is included in the project and is copied correctly to the output directory during the project build process.

    Make sure that the path to the report file is correctly specified in the settings of the report view control.

    Check the properties of the report file to make sure that the Copy to Output Directory setting is correct. If set to Copy if updated, make sure the report file is updated, and then rebuild the solution to ensure that the file is copied correctly to the output directory.

    Make sure that the report file works correctly when it exists.

    Best Regards,

    Jiale


    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Roberto C 120 Reputation points
    2024-04-25T20:01:28.7833333+00:00

    Very well. Based on the response in Greg Low's comment, I want to share what I did to solve my problem. I'm not saying it's the right solution, because I don't know if it's the right thing to do. What I did I installed

    Microsoft.ReportingServices.ReporViewerControl.WinForms (which installed SqlType)

    I also installed

    Microsoft RDLC Report Designer

    It was showing a sqlTypes compatibility error. So I thought of Commenting out this part from the app.Config file

    <dependentAssembly>
      <!--<assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-16.0.0.0" newVersion="16.0.0.0" />-->
    </dependentAssembly>
    

    I recompiled the project and it worked. Again, I'm not sure if this is the right way to do it, but it's working for me for now.

    Thanks

    Jiale Xue

    Greg Low

    Roberto

    0 comments No comments

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.