Parser Error Message: Access is denied【转】

PRB: Access Denied Error When You Make Code Modifications with Index Services Running

View products that this article applies to.

Article ID : 329065
Last Review : June 25, 2004
Revision : 3.0

This article was previously published under Q329065

SYMPTOMS

When you access a page after an AppDomain load, for example, when you modify the Bin directory or the Web.config file on computers running Microsoft Index Services, you may receive the following error message:

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.

时间: 2024-10-10 01:34:28

Parser Error Message: Access is denied【转】的相关文章

ASP.NET Parser Error Message: Could not load type &#39;Web.Global&#39;.

Server Error in '/myapp' Application. 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. P

[解决]Mercurial HTTP Error 500: Access is denied on&#160;00changelog.i

总之,用户对仓库目录要有写权限 00changelog, access is denied, hg, http error 500, mercurial, permissions, push Mercurial HTTP Error 500: Access is denied on 00changelog.i January 13, 2011 Today I created a new Mercurial repository on a Windows server.  I cloned it,

网站部署后Parser Error Message: Could not load type 的解决方案

asp.net 的Webproject 项目是在64bit机上开发,默认选项发布后,部署到32bit的服务器上,出现Parser Error Message: Could not load type的错误,主要原因是: 解决方案的编译配置默认情况下是Debug状态,将其切换到All Configurations下,并将目标平台选为Any CPU,重新发布,就能成功,具体操作如下: 右键解决方案--属性,如图配置

CREATE FILE encountered operating system error 5(Access is denied.)

这篇博文主要演示"CREATE FILE encountered operating system error 5(Access is denied.)"错误如出现的原因(当然只是导致这个错误出现的一种场景而已)和如何解决这个问题以及一些不解的迷惑. 实验环境: 操作系统版本: Windows Server 2012 SP2 数据库的版本:Microsoft SQL Server 2014 - 12.0.2000.8 如下所示,SQL Server Database Services

Socket Error # 10013 Access denied

--------------------------- Debugger Exception Notification --------------------------- Project xxx.exe raised exception class EIdSocketError with message 'Socket Error # 10013 Access denied.'. --------------------------- Break   Continue   Help   --

[BAT]通过schtasks.exe远程调用windows 2008 server上的计划任务,提示ERROR : Access is denied

在windows 2008 server 上建了一个计划任务,想通过命令 schtasks /run /tn "IPADForAdvisor_QA_APITest" /s SZPCWIN2K801 /u msdomain1\jzhang6 /p jzhang6'spassword 来远程启动这个计划任务,总是提示ERROR : Access is denied 登录的这个用户名和密码是在 SZPCWIN2K801 的 Administrators Group 里面的,而且是在同一个域里

一看便知linux下mysql报错ERROR 1044: Access denied for user: &#39;@localhost&#39; to database &#39;mysql&#39;

错误信息:ERROR 1044: Access denied for user: '@localhost' to database 'mysql' linux下解决方案: mysql> use mysql ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql' mysql> exit Bye [[email protected] ~]# service mysqld stop如果该命令不

mysqldump: Got error: 1045: Access denied for user &#39;roor&#39;@&#39;localhost&#39; (using pas sword: YES) when tr

1.错误描述 C:\Users\Administrator>d: D:\>cd MySQL\Program Files\MySQL\MySQL Server 5.6\bin D:\MySQL\Program Files\MySQL\MySQL Server 5.6\bin>mysqldump --all-databases -uro or -p > all.sql Enter password: ************** mysqldump: Got error: 1045:

mysqldump: Got error: 1044: Access denied for user &#39;backupuser&#39;@&#39;%&#39; to database &#39;upmngr&#39; when using LOCK TABLES

在进行Mysql备份的时候: sudo /usr/bin/mysqldump -ubackupuser -pdbpassword --database upmngr >/tmp/`date '+%Y%m%d%H%M%S'`.log 出现下面的错误提示: Warning: Using unique option prefix database instead of databases is deprecated and will be removed in a future release. Pl