Crystal Report Error "Unable to find the report in the manifest resources. Please build the project, and try again. "
Posted on 2005-03-02
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.
[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
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.
Line 46: crpt = New CrystalReport1
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
[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