高手指点编译错误“应用程序中的服务器错误”
环境:winserver 2003+.net 2003(赶时髦)
现象:有时候出现这个错误,有时又自己好了。(讨厌)
背景:也许是我用了webcontrol treeview的原因
尝试:在asp.net forum好象看到这个问题的答案,打开machine.config,
把 <section name="webControls" type="System.Web.Configuration.WebControlsSectionHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
改为: <section name="webControls" type="System.Web.Configuration.WebControlsSectionHandler, System.Web"/>
还是不行,求救!!!!!!!!!!!
错误提示如下:
配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
分析器错误信息: 访问被拒绝:“microsoft.web.ui.webcontrols”。
源错误:
行 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
行 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
行 198: <add assembly="*"/>
行 199: </assemblies>
行 200: </compilation>
源文件: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config 行: 198
程序集加载跟踪: 下列信息有助于确定程序集“microsoft.web.ui.webcontrols”无法加载的原因。
=== Pre-bind state information ===
LOG: DisplayName = microsoft.web.ui.webcontrols
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/test
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: microsoft.web.ui.webcontrols
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/c40279d3/f7471ca7/microsoft.web.ui.webcontrols.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/c40279d3/f7471ca7/microsoft.web.ui.webcontrols/microsoft.web.ui.webcontrols.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/test/bin/microsoft.web.ui.webcontrols.DLL.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=null
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
问题点数:0、回复次数:2Top
1 楼eTopFancy(你的美丽我的回忆)回复于 2003-09-28 14:41:46 得分 0
参考以下这两个连接,或许有帮助:
http://expert.csdn.net/Expert/topic/2301/2301787.xml?temp=.4993708
http://expert.csdn.net/Expert/topic/2260/2260455.xml?temp=.7203638Top
2 楼tomsoncat(蝈蝈)回复于 2003-10-15 09:00:13 得分 0
偶的问题和第一个帖子的一样,不过他的是应用程序,偶的是引用组件,可那些办法都不行 。Top




