Report Viewer DLLS Problems

3

I have an error trying to see a report in an ASP.Net application, the project is already compiled and published on a server.

I have all the necessary DLL in the Bin of my folder, and also in the web.config .

Error:

  

Compilation Error (Compile Error)

     

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

     

Description (in Spanish): An error occurred during the compilation of a resource necessary to address this request. Review the following specific error details and modify the source code appropriately.

     

Compiler Error Message: CS0433: The type "Microsoft.Reporting.WebForms.ReportViewer" exist in both (The ReportViewer type exists in both files):

     

C: /Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.WebForms/9.0.0.0__B03F5F7F11D50A3A/Microsoft.ReportViewer.WebForms.dll

     

C: /Windows/assembly/GAC_MSIL/Microsoft.ReportViewer.WebForms/11.0.0.0__89845DCD8080CC91/Microsoft.ReportViewer.WebForms.dll

     

Source Error:

     

Line 12: <div>
  Line 13: <asp:ScriptManager ID="script1" runat="server" >EnablePageMethods="true"></asp:ScriptManager>
Line 14: <rsweb:ReportViewer ID="rptDetalles" runat="Server">
  Line 15: <LocalReport ReportPath="rptauditoriaDetalles.rdlc"></LocalReport>
  Line 16: </rsweb:ReportViewer>

    
asked by Saul Zamarròn 19.01.2017 в 18:19
source

1 answer

0

Something similar happened to me, the cause of the problem is that you work with different dlls, that of your pc (localhost) with which you have the server. Copy your Microsoft.ReportViewer.WebForms.dll dll to the folder bin of your project, the references there, then in properties of the dll, you change the attribute of Local Copy to true value, and there it should be solved.

    
answered by 01.06.2017 в 01:38