无法加载文件或程序集Microsoft.ReportViewer.WebForms或其依赖项之一

时间:2021-07-14 02:49:44

When I goto my site I get this error...

当我转到我的网站时,我收到此错误...

Error   101 Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\mlui\csharp\WebAdmin_solution\WebAdmin\web.config    209

which is this line of code:

这行代码:

<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

I am using Visual Studio 2012, do I need to download something and add it to the VS 2012 folder?

我使用的是Visual Studio 2012,是否需要下载并将其添加到VS 2012文件夹中?

3 个解决方案

#1


6  

If you're actually using the Reporting Services, try to install the Reporting Services redistributable on the server you deploy your web site to or include the required assemblies with your web application.

如果您实际使用的是Reporting Services,请尝试在部署网站的服务器上安装Reporting Services可再发行组件,或者在Web应用程序中包含所需的程序集。

#2


3  

Look at your folder instalation, what version have the folder ReportViewer. And put Version=X.0.0.0 where X means the version of your instalation.

看看你的文件夹安装,什么版本的文件夹ReportViewer。并将Version = X.0.0.0放在其中X表示您的安装版本。

In my case, I have

就我而言,我有

无法加载文件或程序集Microsoft.ReportViewer.WebForms或其依赖项之一

But only inside 10.0 I have the ReportViewer

但只有在10.0内我才有ReportViewer

无法加载文件或程序集Microsoft.ReportViewer.WebForms或其依赖项之一

And my web.xml is like this

我的web.xml就是这样的

<assemblies>
                <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      </assemblies>
    <buildProviders>
                <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            </buildProviders>

#3


2  

try to update it with latest assembly of version 10.0 by add reference to your project and build it again after adding assembly file will looks something like below

尝试通过添加对项目的引用来更新版本10.0的最新程序集,并在添加程序集文件后再次构建它将如下所示

Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

#1


6  

If you're actually using the Reporting Services, try to install the Reporting Services redistributable on the server you deploy your web site to or include the required assemblies with your web application.

如果您实际使用的是Reporting Services,请尝试在部署网站的服务器上安装Reporting Services可再发行组件,或者在Web应用程序中包含所需的程序集。

#2


3  

Look at your folder instalation, what version have the folder ReportViewer. And put Version=X.0.0.0 where X means the version of your instalation.

看看你的文件夹安装,什么版本的文件夹ReportViewer。并将Version = X.0.0.0放在其中X表示您的安装版本。

In my case, I have

就我而言,我有

无法加载文件或程序集Microsoft.ReportViewer.WebForms或其依赖项之一

But only inside 10.0 I have the ReportViewer

但只有在10.0内我才有ReportViewer

无法加载文件或程序集Microsoft.ReportViewer.WebForms或其依赖项之一

And my web.xml is like this

我的web.xml就是这样的

<assemblies>
                <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      </assemblies>
    <buildProviders>
                <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            </buildProviders>

#3


2  

try to update it with latest assembly of version 10.0 by add reference to your project and build it again after adding assembly file will looks something like below

尝试通过添加对项目的引用来更新版本10.0的最新程序集,并在添加程序集文件后再次构建它将如下所示

Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

相关文章