locked
hosting .NET 4.5 web application with RDLC reports into IIS 6 RRS feed

  • Question

  • User1182587605 posted

    Hi,

    I have a web application developed in ASP.NET 4.5(2015). In dev server(IIS 7) it is working fine but when I moved it to Production server (IIS6 windows server 2003) I have a lot of errors. I have changed the application version to 4.0 in website properties. Even then it is not working. It shows report version related error. My web.config has

    <add assembly="Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
            <add assembly="Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

    But in the production server, I have same files with version=10.0.0.0, So, i tried changing my config file to:

    <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
            <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

    Now, it returns error:

    Method not found: 'System.String System.CodeDom.Compiler.CompilerParameters.get_CoreAssemblyFileName()'. 
    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: System.MissingMethodException: Method not found: 'System.String System.CodeDom.Compiler.CompilerParameters.get_CoreAssemblyFileName()'.
    
    Source Error: 
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
    

    I am unable to find a solution to this problem. Please help me in this.

    Regards,

    Deepak

    Monday, January 23, 2017 9:04 AM

All replies

  • User-1509636757 posted

    are you hosting Published content of your website? Or you are hosting website along with code itself?

    Monday, January 23, 2017 9:23 AM
  • User1182587605 posted

    I am hosting the published content.

    Regards,

    Deepak

    Monday, January 23, 2017 10:00 AM
  • User-1509636757 posted

    This is probably issue of any old DLL version reference. I suggest you refer to this thread which well describes troubleshooting this issue: System.MissingMethodException: Method not found?

    hope it helps./.

    Monday, January 23, 2017 10:04 AM
  • User1182587605 posted

    Tried that but no success.

    Thanks anyway,

    Deepak

    Monday, January 23, 2017 10:27 AM
  • User-2057865890 posted

    Hi Deepak,

    To Load Version 10.0.0.0 Of ReportViewer.WebForms, you could try

    <system.web>
       <httpHandlers>
          <add path="Reserved.ReportViewerWebControl.axd" verb="*" 
          type="Microsoft.Reporting.WebForms.HttpHandler, 
          Microsoft.ReportViewer.WebForms, Version=10.0.0.0, 
          Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" 
          />
       </httpHandlers>
    </system.web>
    <system.webServer>
       <handlers>
          <add name="ReportViewerWebControlHandler" 
          preCondition="integratedMode"
          verb="*" path="Reserved.ReportViewerWebControl.axd" 
          type="Microsoft.Reporting.WebForms.HttpHandler, 
          Microsoft.ReportViewer.WebForms, Version=10.0.0.0, 
          Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
          />
    </handlers>
    </system.webServer>

    reference: https://msdn.microsoft.com/en-us/library/ms251661.aspx

    Best Regards,

    Chris

    Monday, January 30, 2017 1:10 PM