locked
Reports not working (.rdlc format) RRS feed

  • Question

  • Recently I do some modification to a webapp to deploy it in a new production server.  I didn't made any modifications to the reports.  I test it in my development environment and all work fine.  When I upload the webapp to the production server all reports throw the error below:

     

    Server Error in '/' Application.

    Error while loading code module: ‘Report, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5a8ad39ab537047’. Details: Could not load file or assembly 'Report, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5a8ad39ab537047' or one of its dependencies. The system cannot find the file specified.

    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: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Error while loading code module: ‘Report, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5a8ad39ab537047’. Details: Could not load file or assembly 'Report, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5a8ad39ab537047' or one of its dependencies. The system cannot find the file specified.

    Source Error: 

    Line 67: }
    Line 68: 
    Line 69: ReportViewer1.LocalReport.SetParameters(paramList.Values);
    Line 70: }
    Line 71: 


    Stack Trace: 

    [ReportProcessingException: Error while loading code module: ‘Report, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5a8ad39ab537047’. Details: Could not load file or assembly 'Report, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d5a8ad39ab537047' or one of its dependencies. The system cannot find the file specified.]
     Microsoft.ReportingServices.ReportProcessing.ReportPublishing.CreateIntermediateFormat(CatalogItemContext reportContext, Byte[] definition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, PublishingErrorContext errorContext, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks) +382
     Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileReport(CatalogItemContext reportContext, Byte[] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, PublishingErrorContext errorContext, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions, String& reportDescription, String& reportLanguage, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks) +80
     Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(CatalogItemContext reportContext, Byte[] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions) +328
     Microsoft.Reporting.ReportCompiler.CompileReport(CatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ReportSnapshotBase& snapshot) +175
    
    [DefinitionInvalidException: The definition of the report 'Main Report' is invalid.]
     Microsoft.Reporting.ReportCompiler.CompileReport(CatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ReportSnapshotBase& snapshot) +237
     Microsoft.Reporting.StoredReport.CompileReport() +72
     Microsoft.Reporting.StoredReport.get_Snapshot() +32
     Microsoft.Reporting.StandalonePreviewStore.GetCompiledReport(CatalogItemContext context, Boolean rebuild, ReportSnapshotBase& snapshot) +352
     Microsoft.Reporting.LocalService.CompileReport(CatalogItemContext itemContext, Boolean rebuild) +30
     Microsoft.Reporting.WebForms.LocalReport.CompileReport() +90
    
    [LocalProcessingException: An error occurred during local report processing.]
     Microsoft.Reporting.WebForms.LocalReport.CompileReport() +125
     Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1 parameters) +53
     Reports_StudentsByAdmissionDate.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\SESO_SAAS_K12\Reports\StudentsByAdmissionDate.aspx.cs:69
     System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
     System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
     System.Web.UI.Control.OnLoad(EventArgs e) +99
     System.Web.UI.Control.LoadRecursive() +50
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

     

    My Comp I'm running Win 7 64 bit and the server is Win Server 2008 R2 64 bit.  I'm using Visual Studio 2005

    Monday, November 1, 2010 8:35 PM

All replies

  • Event Viewer trow me this:

    Event code: 3005 

    Event message: An unhandled exception has occurred. 

    Event time: 11/2/2010 10:36:21 AM 

    Event time (UTC): 11/2/2010 2:36:21 PM 

    Event ID: 589dd35c548d4879a2edfe80e16ec4b7 

    Event sequence: 378 

    Event occurrence: 23 

    Event detail code: 0 

     

    Application information: 

        Application domain: /LM/W3SVC/13/ROOT-1-129331761766406250 

        Trust level: Full 

        Application Virtual Path: / 

        Application Path: C:\Inetpub\wwwroot\SESO_SAAS_K12\ 

        Machine name: SERVER30746 

     

    Process information: 

        Process ID: 3108 

        Process name: w3wp.exe 

        Account name: NT AUTHORITY\NETWORK SERVICE 

     

    Exception information: 

        Exception type: LocalProcessingException 

        Exception message: An error occurred during local report processing. 

     

    Request information: 

        Request URL: http://seso.atbsaas.com/Reports/GPAReport.aspx 

        Request path: /Reports/GPAReport.aspx 

        User host address: 24.42.34.248 

        User: root 

        Is authenticated: True 

        Authentication Type: Forms 

        Thread account name: NT AUTHORITY\NETWORK SERVICE 

     

    Thread information: 

        Thread ID: 9 

        Thread account name: NT AUTHORITY\NETWORK SERVICE 

        Is impersonating: False 

        Stack trace:    at Microsoft.Reporting.WebForms.LocalReport.CompileReport()

       at Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1 parameters)

       at Reports_GPAReport.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\SESO_SAAS_K12\Reports\GPAReport.aspx.cs:line 104

       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)

       at System.Web.UI.Control.OnLoad(EventArgs e)

       at System.Web.UI.Control.LoadRecursive()

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

     

    Custom event details: 


    Tuesday, November 2, 2010 2:38 PM
  • Your call to SetParameters is the first thing your web site does that triggers a compilation of the report.

    It looks like your report is referencing a custom assembly, named Report.dll, but this assembly is not accessible to the ReportViewer control.  Is this an assembly that you can register in the GAC or put in your application's bin directory?

    Sunday, November 7, 2010 9:10 PM