我在添加Datalist控件到文件后,保存查看到这个错误,请指教!!我用的是VS2005,ACCESS 2003,操作系统WIN2003。Server Error in '/BarChart2' Application.
--------------------------------------------------------------------------------Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type System.Web.UI.WebControls.AccessDataSource from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.Source Error:
Line 74: <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
Line 75: <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
Line 76: </asp:DataList><asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/data.mdb"
Line 77: SelectCommand="SELECT * FROM [vote] ORDER BY [ID]"></asp:AccessDataSource>
Line 78:
Source File: G:\SAGA'S FILE\Learning\Dot Net\ASP.NET\BegASPNET11\BarChart2\BarChart.aspx Line: 76
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
--------------------------------------------------------------------------------Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type System.Web.UI.WebControls.AccessDataSource from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.Source Error:
Line 74: <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
Line 75: <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
Line 76: </asp:DataList><asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/data.mdb"
Line 77: SelectCommand="SELECT * FROM [vote] ORDER BY [ID]"></asp:AccessDataSource>
Line 78:
Source File: G:\SAGA'S FILE\Learning\Dot Net\ASP.NET\BegASPNET11\BarChart2\BarChart.aspx Line: 76
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
你2.0的程序用1.1的.net肯定出错了
你2.0的程序用1.1的.net肯定出错了
同意该人 说法你在应用程序虚拟目录的 IIS 设置中,保持将该应用程序映射到 ASP.Net 1.1(或 1.0)。继续使用 Visual Studio .Net 2003 编辑应用程序代码。