Thursday, September 13, 2007

Unable to find the report in the manifest resources. please build the project, and try again.

I was reorganizing a project and I moved a crystal report after that I received this error at runtime "Unable to find the report in the manifest resources. please build the project, and try again." No amount of building could fix this problem. I eventually had to open up the .csproj file in note pad and edit the items entries in the xml/MSBUILD.

Here is what a Crystal Report should look like in your MSBUILD script.

    <Compile Include="CrystalReport1.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>CrystalReport1.rpt</DependentUpon>
      <SubType>Component</SubType>
    </Compile>

    <EmbeddedResource Include="CrystalReport1.rpt">
      <Generator>CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator</Generator>
      <LastGenOutput>CrystalReport1.cs</LastGenOutput>
    </EmbeddedResource>

 After you correct the entry Rename the file Build then rename it again to the old name and build again. It might work if you just delete the code behind and then rebuild, but I didnt't try this.

 

#     Comments [2]  
kick it on DotNetKicks.com
Tuesday, February 24, 2009 4:41:15 PM (GMT Standard Time, UTC+00:00)
Thanks!
I read through a few other kludgy solutions for the same error, but they all felt like shots in the dark and turned out to be dead ends.
You hit the nail right on the head with this clean, specific solution.
Daren
Thursday, June 25, 2009 5:09:32 PM (GMT Standard Time, UTC+00:00)
Could you help me. The only way to get rid of a temptation is to yield to it. Help me! Could you help me find sites on the: Topamax cause melasma. I found only this - topamax forum. Nasdaq - nexm a developer of innova of lamisilr terbinafine formulated with terbinafine and the nexact. Your source for buying lamisil online at a fraction of :eek: Thanks in advance. Rickie from Nigeria.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview