0
我試圖將ReportViewer程序集添加到我的web.config文件中。我把它從這個目錄中取兩個DLL:在web.config中手動添加ReportViewer程序集
Microsoft.ReportViewer.WebForms.dll從C:\ Program Files文件 (x86)的\微軟的Visual Studio 12.0 \的ReportViewer
Microsoft.reportviewer。在C common.dll:\ Program Files文件\微軟
辦公室\ Office15 \加載項\ 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.
感謝您的回答。現在我得到這個錯誤..警告:比較彙編名稱導致不匹配:主版本 錯誤:無法完成彙編設置(hr = 0x80131040)。探測終止。 – FullStack