使用 Microsoft 报告工具部署 ReportWebsite 时出错
我正在尝试部署一个包含 MicrosoftReport 的网站。当我部署它时,我在客户端系统上收到如下错误:
这是我的代码 .aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<table style="width:60%;" align="center">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="From Date : "></asp:Label>
<asp:TextBox ID="txtStartDate" runat="server" ReadOnly="True"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txtStartDate"
runat="server" Format="yyyy-MM-dd" />
</td>
<td>
<asp:Label ID="Label2" runat="server" Text="To Date : "></asp:Label>
<asp:TextBox ID="txtEndDate" runat="server" ReadOnly="True"></asp:TextBox>
<asp:CalendarExtender ID="txtEndDate_CalendarExtender" runat="server"
Enabled="True" TargetControlID="txtEndDate">
</asp:CalendarExtender>
</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
</td>
</tr>
</table>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt">
<LocalReport ReportPath="report.rdlc">
</LocalReport>
</rsweb:ReportViewer>
</div>
</form>
</body>
</html>
我该如何解决该问题?我必须添加任何参考吗?
I am trying to deploy a website that has MicrosoftReport in it. When I deploy it I get the error on the client system a shown below:
Here is my code .aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<table style="width:60%;" align="center">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="From Date : "></asp:Label>
<asp:TextBox ID="txtStartDate" runat="server" ReadOnly="True"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txtStartDate"
runat="server" Format="yyyy-MM-dd" />
</td>
<td>
<asp:Label ID="Label2" runat="server" Text="To Date : "></asp:Label>
<asp:TextBox ID="txtEndDate" runat="server" ReadOnly="True"></asp:TextBox>
<asp:CalendarExtender ID="txtEndDate_CalendarExtender" runat="server"
Enabled="True" TargetControlID="txtEndDate">
</asp:CalendarExtender>
</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
</td>
</tr>
</table>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt">
<LocalReport ReportPath="report.rdlc">
</LocalReport>
</rsweb:ReportViewer>
</div>
</form>
</body>
</html>
How do I solve the problem? Do I have to add any reference to it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://www.dotnetspider.com/resources /35936-Could-not-load-file-or- assembly.aspx
解决了我的问题。
http://www.dotnetspider.com/resources/35936-Could-not-load-file-or-assembly.aspx
Solved my problem.