Unable to find the report in the manifest resources - Crystal Report / C#

22,897

Solution 1

A lot of things go wrong with CR after a lot of googling one of these fixes will solve the problem.

1) Full FullResourceName property in the reports code file (.cs) will be wrong if the containing folder(s) has spaces in its name. The best fix is to rename the folder to remove spaces if you manually edit the code file the error will keep coming back

2) Make sure the build property of the rtp file is set to Embedded Resource

3) Use Developer Express for reporting and avoid all headaches in the first place

Solution 2

Well... I had the same problem. My solution was to edit the properties of the Report, and change the Custom Name Space.

Lets say that I was caling the report from Name Space "A", and my report was in the same Tool Name Space but in other DLL.

So, I've cleared the Custom Name Space... and rebuilt everything.

Problem solved for me.

Solution 3

I received the same "Unable to find the report in the manifest resources" error in VS 2010 after manually copying *.rpt and *.vb files into a different solution's directory.

After checking the embedded resource setting everyone speaks about in this post (it was already set to embedded resource),

I solved the problem by right-clicking the .rpt file in Solution Explorer and selected "Run Custom Tool".

Solution 4

This is a silly mistake done by a number of programmers. It actually happens only when you transfer or change a project or report from one project to another project.

"Unable to find the report in the manifest resources - Crystal Report / C#"

Solution:

Go into the project's Report Form's .CS file Now You have:

public override string FullResourceName 
{
    get 
    {
       //Note this path it must be yours project name  Or full path of Crystal report 
       return "FullPath_from_project_name.Crystalreport.rpt";
    }
    set 
    {
       // Do nothing
    }
}

I"m deadly sure you must Error free If not mail me with Error:[email protected]

Solution 5

My problem was solved by removing a folder which contain space . after i change it then this error is gone.

:)

Share:
22,897
Waqas
Author by

Waqas

Software engineer by profession, an MSc. in Information Systems, interested in pursuing career in research within the areas of Ubiquitous Computing and Mobile Computing...

Updated on July 20, 2022

Comments

  • Waqas
    Waqas almost 2 years

    I have a windows application written in C# and am trying to display crystal report using crystal report viewer. The name of my report is "receiptReport" and I am using following line to show report in viewer:

    receiptReport rpt = new receiptReport();
    crystalReportViewer.ReportSource = rpt;
    

    I am receiving following error: Unable to find the report in the manifest resources. Please build the project, and try again.

    I have tried by setting Build Action of report file 'receiptReport.rpt' to Embedded Resource but still now luck.. Im using VS2010..

  • Willem
    Willem about 11 years
    After copying a crystal report from one to another project, I ran into this error. The embedded resource setting was wrong, and this fixed it.