Could not load file or assembly Microsoft.ReportViewer.WebForms.XmlSerializers

后端 未结 2 1498
终归单人心
终归单人心 2021-01-12 11:40

i am using ReportViewer control in my aspx page. i am accessing the report from remote processing mode.

this is my code:

      ReportServerDomain = S         


        
相关标签:
2条回答
  • 2021-01-12 11:50

    Have you tried to reinstall ReportViewer redistributable files? You can find the links here

    http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6576

    http://www.microsoft.com/download/en/details.aspx?id=4016

    The first one is the one related to VS2008 report viewer, ( the other one is for 2005 version) and is the one that should resolve your problem.

    0 讨论(0)
  • 2021-01-12 12:16

    Root cause for this issue is version problem of Microsft.ReportViewer.Webforms dll. Solution is down load and run the exe ReportViewer.exe from the location http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6576. Our actual problem is our report related dll is pointing to some old version ie not to version 11.0.0.0. Once this exe got run properly it will be properly pointing to version 11.0.0.0. To work it properly make same entry in both web config

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

    and registering area also

    <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, 
    Culture=neutral, PublicKeyToken=89845dcd8080cc91"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>"
    
    0 讨论(0)
提交回复
热议问题