CS0433: The type Microsoft.Reporting.WebForms.ReportDataSource exists in both GAC and Temporary ASP.NET files

  • Thread starter Thread starter Nikola Shefteroski
  • Start date Start date
N

Nikola Shefteroski

Guest
After upgrading Microsoft Report Viewer Control for ASP.Net Web Forms applications with Nuget from version 10 to 15, when published project to server the error below starts to appear. On local machine everything works fine. All ReportViewer reference Copy Local properties are set to True, registered all report pages with appropriate assembly. Tried clearing temp asp.net files, checked for double references in web.config, installed latest version of report viewer on server, nothing helped. Do you have any advice or faced similar issue?

---------------------------------------------------------------------------------------------------------------------------------------

Compilation ErrorDescription: 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.

Compiler Error Message: CS0433: The type 'Microsoft.Reporting.WebForms.ReportDataSource' exists in both 'c:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\psshifttracker\3204b50c\1eca333e\assembly\dl3\0941aa88\00019b61_9c4ed401\Microsoft.ReportViewer.WebForms.DLL'

Source Error:


Line 595:
Line 596: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 597: private global::Microsoft.Reporting.WebForms.ReportDataSource @__BuildControl__control9() {
Line 598: global::Microsoft.Reporting.WebForms.ReportDataSource @__ctrl;
Line 599:


Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\psshifttracker\3204b50c\1eca333e\App_Web_shiftreport.aspx.dfa151d5.venwfp5b.0.cs Line: 597

Continue reading...
 
Back
Top