Solved - Microsoft.Reporting.WebForms.ReportViewer Exists in two places at once

0

When compiling the code, I get the following error:

  

The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in both   'c: \ Users \ cargomme \ AppData \ Local \ Temp \ Temporary ASP.NET   Files \ root \ 71efd4ac \ 4caf1d86 \ assembly \ dl3 \ 7e8ab3ae \ 00f6cd85_5d35cc01 \ Microsoft.ReportViewer.WebForms.DLL '   and   'c: \ Windows \ assembly \ GAC_MSIL \ Microsoft.ReportViewer.WebForms \ 11.0.0.0__89845dcd8080cc91 \ Microsoft.ReportViewer.WebForms.DLL'

I already tried:

1) Recompile the solution. 2) Delete temporary .net files 3) Delete the appdata folder. 4) Comment

<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />

and none worked, please help.

    
asked by Andress Blend 04.07.2018 в 14:34
source

1 answer

0

I solved the problem by deleting the debug folder of Obj and deleting the 2 dll of reportviewer from the bin folder of the project.

    
answered by 04.07.2018 / 15:42
source