我在程序开发中,遇到了这个一个问题,当我调试程序时出现如下错误
“/Drom_Manage”应用程序中的服务器错误。
--------------------------------------------------------------------------------
配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
分析器错误信息: 访问被拒绝:“microsoft.web.ui.webcontrols”。
源错误:
行 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
行 198: <add assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=null"/>
行 199: <add assembly="*"/>
行 200: </assemblies>
行 201: </compilation>
源文件: c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config 行: 199
程序集加载跟踪: 下列信息有助于确定程序集“microsoft.web.ui.webcontrols”无法加载的原因。
=== Pre-bind state information ===
LOG: DisplayName = microsoft.web.ui.webcontrols
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/Drom_Manage
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:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/drom_manage/9fcb4944/e7a54047/microsoft.web.ui.webcontrols.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/drom_manage/9fcb4944/e7a54047/microsoft.web.ui.webcontrols/microsoft.web.ui.webcontrols.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/Drom_Manage/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
最后我发现提示信息中有,C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/drom_manage/9fcb4944/e7a54047这个路径下,少了一个microsoft.web.ui.webcontrols.DLL文件,找到这个文件,将它复制到,上面这个路径下就可以了!
但是我不知道,为什么这些DLL文件为什么老是丢失!