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.TreeView from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.Source Error:
Line 144:<tr height="328">
Line 145: <td valign="top" bgcolor="#E0E9EF">
Line 146: <asp:TreeView ID="TreeView1" runat="server" Font-Size="X-Small" BorderStyle="None" ForeColor="Black" NodeWrap="True" ShowLines="True" ExpandDepth="1">
Line 147: </asp:TreeView>
Line 148: </td>运行时,提示line 146行错误.错误讯息见上面.我是在2005下面调试的.
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.TreeView from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.Source Error:
Line 144:<tr height="328">
Line 145: <td valign="top" bgcolor="#E0E9EF">
Line 146: <asp:TreeView ID="TreeView1" runat="server" Font-Size="X-Small" BorderStyle="None" ForeColor="Black" NodeWrap="True" ShowLines="True" ExpandDepth="1">
Line 147: </asp:TreeView>
Line 148: </td>运行时,提示line 146行错误.错误讯息见上面.我是在2005下面调试的.
从这一句就可以看出环境是1.1的解决方法:
到IIS去设置应用程序属性,在.net选项卡中选择2.0
你的服务器肯定是同时装了1.1和2.0, 而默认是1.1的!
或者改用microsoft.web.ui.webcontrols.dll,这个包里提供支持.net framework 1.1版的
treeview控件。