Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6397
  • Last Modified:

Crystal Report Error "Unable to find the report in the manifest resources. Please build the project, and try again. "

Hello all.  I am having alot of trouble getting this to work.  I am creating my first Crystal report in ASP.Net.  I created the report using my connection information,  I then am using some code to sset the login information because I was getting a "Logon Falied" error.  Now everytime I am getting the Unable to find report in manifest error".  I tried alot of things already, the Build Action is already set to "Embedded Resource".  I tried adding the crystal references manually still no dice.  Any ideas?  It is bombing right at the For Each line in the code when trying to access the report tables.

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

[Under the public class]
  Protected WithEvents CrystalReportsViewer1 As CrystalDecisions.Web.CrystalReportViewer

[In the Page_Load event]

 Dim crpt As CrystalReport1
        Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
        Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
        Dim strAppUser As String = ConfigurationSettings.AppSettings("AppUser")
        If Not Page.IsPostBack Then

            crpt = New CrystalReport1
[Bombs on this line next the for line]
            For Each myTable In crpt.Database.Tables
                myLogin = myTable.LogOnInfo
                myLogin.ConnectionInfo.Password = "test"
                myLogin.ConnectionInfo.UserID = "sa"

            CrystalReportViewer1.ReportSource = crpt
End Sub


Unable to find the report in the manifest resources. Please build the project, and try again.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: CrystalDecisions.CrystalReports.Engine.InternalException: "Unable to find the report in the manifest resources. Please build the project, and try again.

Source Error:

Line 46:             crpt = New CrystalReport1
Line 47:
Line 48:             For Each myTable In crpt.Database.Tables
Line 49:                 myLogin = myTable.LogOnInfo
Line 50:                 myLogin.ConnectionInfo.Password = Passwords.GetAppUserPassword(strAppUser)

Source File: C:\Inetpub\wwwroot\BudgetForecast\BudgetMain.aspx.vb    Line: 48

Stack Trace:

[InternalException: "Unable to find the report in the manifest resources. Please build the project, and try again.]
   .F(String       , EngineExceptionErrorID 
   .B(String , Int32 )
   CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
   AdminaStar.Budget.BudgetMain.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\BudgetForecast\BudgetMain.aspx.vb:48
   System.Web.UI.Control.OnLoad(EventArgs e)


  • 2
  • 2
1 Solution

Remove all the references of Crystal Report  and add again.
While adding  - add from their actual path  and not  from list of .Net components available,, click on browse go to actual location &  give the reference & recompile your application.

sbornstein2Author Commented:
Did not work I already tried that and found that online as well.
sbornstein2Author Commented:
None of this is the issue. This is what is happening.  It works fine in new separate solution.  I even totally rebuilt the solution I am having the problem in.  Same problem only in this solution.  I have tried everything.  I am thinking its a namespace issue or something.  Its about 5 projects all within 1 solution.  Any ideas?
Check your Namespaces - If you copied code from one project to another, check to see that you have the classes under the proper namespaces. Look in the Class Viewer: Are there classes in the wrong Namespaces?

That is the problem.

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now