Home > Uncategorized > Parser Error Message: Access is denied

Parser Error Message: Access is denied

This is one of those horrible asp.net error messages, when for no reason, you update some code with new code and you get an access is denied error.(*)
There are some sensible suggestions listed on msdn as to why this happens, and how it’s all down to indexer service – although, when you already have this service disabled, you’d wonder what’s up?
Basically, I went through these steps
Kill the asp_wp process
stop w3svc service
delete the bin folder
restart w3svc service, and go to offending page
stop the w3svc service
replace the bin folder with old files
restart the w3svc service.
It makes little sense why this works, but it worked for me.
(*) the specifics of the error (if you do view|Source) are
[FileLoadException]: Access is denied: ‘erc’.
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable original)
[ConfigurationException]: Access is denied: ‘erc’. (c:winntmicrosoft.netframeworkv1.1.4322Configmachine.config line 258)
   at System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable original)
   at System.Web.UI.TemplateParser.AppendConfigAssemblies()
   at System.Web.UI.TemplateParser.PrepareParse()
   at System.Web.UI.TemplateParser.Parse()
   at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()
   at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound)
   at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()
   at System.Web.UI.TemplateParser.GetParserCacheItem()
   at System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser)
   at System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)
   at System.Web.HttpApplicationFactory.Init(HttpContext context)
   at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: