The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in both

后端 未结 2 799

I have a ASP.NET application which was referring Microsoft.ReportViewer.WebForms of version 9.0.0.0, I changed to refer to Microsoft.ReportViewer.WebForms of version 11.0.0.

2条回答
  •  爱一瞬间的悲伤
    2021-01-12 17:00

    I tried adding dependentAssembly in web.config but that did not help.

    
      
      
    
    

    However it did not help as PublicKeyToken has changed in 11.0.0.0 dll.

    Finally I was able to resolve the issue by adding qualifyAssembly node in web.config

    
    

提交回复
热议问题