【发布时间】:2017-05-04 18:00:26
【问题描述】:
我正在尝试将 ReportViewer 程序集添加到我的 web.config 文件中。我放置了两个取自该目录的 dll:
来自 C:\Program Files 的 Microsoft.ReportViewer.WebForms.dll (x86)\Microsoft Visual Studio 12.0\ReportViewer
来自 C:\Program Files\Microsoft
的 Microsoft.reportviewer.common.dll Office\Office15\ADDINS\PowerPivot Excel 插件
但是当我运行我的网页时它显示错误。
Line 14: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
Line 15: <assemblies>
Line 16: <add assembly="Microsoft.ReportViewer.WebForms" />
Line 17: <add assembly="Microsoft.ReportViewer.Common" />
Line 18: </assemblies>
程序集堆栈跟踪是:
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.ReportViewer.WebForms
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Microsoft.ReportViewer.WebForms | Domain ID: 6
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Users/Dang/Documents/small/
LOG: Initial PrivatePath = C:\Users\Dang\Documents\small\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Dang\Documents\small\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vleave/4204733b/f10534fe/Microsoft.ReportViewer.WebForms.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vleave/4204733b/f10534fe/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL.
LOG: Attempting download of new URL file:///C:/Users/Dang/Documents/small/bin/Microsoft.ReportViewer.WebForms.DLL.
LOG: Attempting download of new URL file:///C:/Users/Dang/Documents/small/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vleave/4204733b/f10534fe/Microsoft.ReportViewer.WebForms.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vleave/4204733b/f10534fe/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE.
LOG: Attempting download of new URL file:///C:/Users/Dang/Documents/small/bin/Microsoft.ReportViewer.WebForms.EXE.
LOG: Attempting download of new URL file:///C:/Users/Dang/Documents/small/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE.
【问题讨论】:
标签: asp.net reporting-services