分析器错误信息: 访问被拒绝:“microsoft.web.ui.webcontrols”。

 

“/MyBMS”应用程序中的服务器错误。  
  --------------------------------------------------------------------------------  
   
  配置错误    
  说明:   在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。    
   
  分析器错误信息:   访问被拒绝:“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/MyBMS  
  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/mybms/a5242d1a/9cdf0cc7/microsoft.web.ui.webcontrols.DLL.  
  LOG:   Attempting   download   of   new   URL   file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary   ASP.NET   Files/mybms/a5242d1a/9cdf0cc7/microsoft.web.ui.webcontrols/microsoft.web.ui.webcontrols.DLL.  
  LOG:   Attempting   download   of   new   URL   file:///c:/inetpub/wwwroot/MyBMS/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.2032;   ASP.NET   版本:1.1.4322.2032    

http://support.microsoft.com/default.aspx?scid=kb;en-us;329065

Server Error in '/MyWebApp' Application

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'mydll'.

Source Error:

Line 169:   <add assembly=<System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a>/>
Line 170:    <add assembly=<System.EnterpriseServices, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a>/>
Line 171:    <add assembly=<*>/>
Line 172:    </assemblies>
Line 173:
Source File: c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config Line: 171
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0

If you right-click the page in the browser, and then click View Source, you see that the HTML source code reveals additional information, including the following call stack.
[FileLoadException]: Access is denied: 'MyWebApp'.<BR/>
at System.Reflection.Assembly.nLoad(AssemblyName fileName, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark&amp; stackMark)<BR/>
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark&amp; stackMark)<BR/>
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp; stackMark)<BR/>
at System.Reflection.Assembly.Load(String assemblyString)<BR/>
at System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable original)<BR/>
[ConfigurationException]: Access is denied: 'MyWebApp'.<BR/>
(d:\winxp\microsoft.net\framework\v1.0.3215\Config\machine.config line 145)<BR/>
at System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable original)<BR/>
at System.Web.UI.CompilationConfiguration.get_Assemblies()<BR/>
at System.Web.UI.CompilationConfiguration.GetAssembliesFromContext(HttpContext context)<BR/>
at System.Web.UI.TemplateParser.AppendConfigAssemblies()<BR/>
at System.Web.UI.TemplateParser.PrepareParse()<BR/>
at System.Web.UI.TemplateParser.Parse()<BR/>
at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()<BR/>
at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound)<BR/>
at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()<BR/>
at System.Web.UI.TemplateParser.GetParserCacheItem()<BR/>
at System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser&amp; parser)<BR/>
at System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)<BR/>
at System.Web.HttpApplicationFactory.Init(HttpContext context)<BR/>
at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)<BR/>
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

Back to the top

CAUSE

If you run Index Server (Cisvc.exe), then Index Server may rescan the Temporary ASP.NET Files directory while it requests a Microsoft ASP.NET page. Cisvc.exe then holds a lock on the Temporary ASP.NET Files directory for one to five minutes. The length of time of the lock depends on the size of the directory that causes the Aspnet_wp.exeprocess (or W3wp.exe process for applications that run on Microsoft Internet Information Services [IIS] 6.0) to not load the particular DLL.

Back to the top

RESOLUTION

If you do not use Index Server on the server, you can disable it. To do so, follow these steps:
1. Click Start, and then click Services.
2. Locate Indexing Service from the list of services, and then click Indexing Service Properties from the subform.
3. On the General tab of the Indexing Service Properties dialog box, in the Startup type drop-down item list, click Disabled.
4. Click OK.

If you use Index Server, you can exclude the Temporary ASP.NET Files directory from the folders that the Index Server scans. To do so, follow these steps:
1. Click Start, point to All Programs, point to Administrative Tools, and then click Computer Management.
2. Expand the Services and Applications node, expand the Indexing Service node, and then expand the System node.
3. Right-click the Directories folder, point to New, and then click Directory from the subform to open the Add Directory dialog box.
4. Click Browse, and then locate the Temporary ASP.NET Files directory. You typically find the Temporary ASP.NET files in the following path: c:\<WINDIR>\Microsoft.NET\Framework\<Version Number>\Temporary ASP.NET Files
Note<Version Number> is the version of .NET Framework installed on your computer.
5. Click No under the Include in Index? option buttons.
6. Click OK to close.
7. Close the Computer Management dialog box.
8. Restart the Indexing Services service.

Back to the top

MORE INFORMATION

Other software that is designed to scan directories at regular intervals may lock the files that are located in the Temporary ASP.NET Files directory in a manner that is similar to how the Indexing Service locks the files. Examples of such software include virus scanners and backup software. Microsoft recommends that you see the manufacturers' manuals for the individual software for information about how to disable or to exclude the Temporary ASP.NET Files from these services.

Back to the top

其中最常见的原因是Indexing   service服务引起的。解决方法就是停用Indexing   service,或配置ASP.net   的临时目录不受Indexing   service服务的影响。  
   
  配置ASP.net   的临时目录不受Indexing   service服务的影响的步骤如下:  
   
  1、开始   --   管理工具   --   计算机管理(Win2003的位置,其他操作系统类似)打开计算机管理  
  2、展开计算机管理左边树中“服务和应用程序”节点,再在其下展开“索引服务”节点,再在其下展开“System”节点,再在其下展开“目录”节点。  
  3、在计算机管理的右边我们可以看到配置的索引服务目录。  
  4、在“目录”节点上右击鼠标,选择“新建”--“目录”  
  5、在“添加目录”对话框中,路经输入框中输入   ASP.net   的临时文件目录。默认应该是:  
  c:\<WINDIR>\Microsoft.NET\Framework\<Version   Number>\Temporary   ASP.NET   Files     目录。  
  <Version   Number>   指你要处理的.net版本。  
  6、在“包含在索引中吗?”选项中,选择“否”  
  7、单击“确定”按钮  
  8、在“索引服务”节点上右键单击,重起索引服务即可。  

posted on 2007-10-19 10:04  simhare  阅读(977)  评论(0编辑  收藏  举报

导航