在WebUserControl中我用了TreeView,在引用中我也加上了Microsoft.Web.UI.WebControls
为什么说<找到的名为“Microsoft.Web.UI.WebControls”的程序集清单定义与程序集引用不匹配。>
“/gsgl”应用程序中的服务器错误。
--------------------------------------------------------------------------------分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 找到的名为“Microsoft.Web.UI.WebControls”的程序集清单定义与程序集引用不匹配。源错误:
行 1: <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
行 2: <%@ Register TagPrefix="uc2" TagName="glBottom" Src="../glBottom.ascx" %>
行 3: <%@ Page language="c#" Codebehind="glGslr.aspx.cs" AutoEventWireup="false" Inherits="gsgl.glGslr" %>
源文件: c:\inetpub\wwwroot\gsgl\gslr\glGslr.aspx 行: 1 程序集加载跟踪: 下列信息有助于确定程序集“Microsoft.Web.UI.WebControls”无法加载的原因。
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/gsgl
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/gsgl/c448f2cf/193a6a07/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/gsgl/c448f2cf/193a6a07/Microsoft.Web.UI.WebControls/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/gsgl/bin/Microsoft.Web.UI.WebControls.DLL.
WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032
为什么说<找到的名为“Microsoft.Web.UI.WebControls”的程序集清单定义与程序集引用不匹配。>
“/gsgl”应用程序中的服务器错误。
--------------------------------------------------------------------------------分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 找到的名为“Microsoft.Web.UI.WebControls”的程序集清单定义与程序集引用不匹配。源错误:
行 1: <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
行 2: <%@ Register TagPrefix="uc2" TagName="glBottom" Src="../glBottom.ascx" %>
行 3: <%@ Page language="c#" Codebehind="glGslr.aspx.cs" AutoEventWireup="false" Inherits="gsgl.glGslr" %>
源文件: c:\inetpub\wwwroot\gsgl\gslr\glGslr.aspx 行: 1 程序集加载跟踪: 下列信息有助于确定程序集“Microsoft.Web.UI.WebControls”无法加载的原因。
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/gsgl
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/gsgl/c448f2cf/193a6a07/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/gsgl/c448f2cf/193a6a07/Microsoft.Web.UI.WebControls/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/gsgl/bin/Microsoft.Web.UI.WebControls.DLL.
WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032
解决方案 »
- JS日历控件 求高手
- 前台aspx页面如何引用svg!求教
- 同一用户打开的不同网页中产生的同名SESSION会不会相互干扰?
- 搞了好久,不知道什么原因
- 简单问题 向access数据库中插入数据时如果存在'字符就出错 怎样用正则表达式把字符串中的'号替换掉?
- C#中如何把中文字符转换成utf8编码?
- 在FCKeditor2.2中,浏览服务器图片文件时 :出现xml request error:internal server error(500) 错误
- 如何显示Exception Message在custom error page?
- 请教:可否在Button_Click后不产生Post事件?一定给分
- 新手,这个小功能怎么做
- 如何弹出一个网页,使其大小不能更改, 而且不带地址栏
- 寻求解决方案??100分
把你工具栏上的TreeView删掉,然后重新添加,添加时选择程序集的时候选择你在项目中应用的那个,然后再试试看~
或者看Version=1.0.2.226是否就是你引用的程序集的版本?