"Parser Error Message: Access is denied: Source Error: Line 198: "

Hi,

One of the stunning errors you may get while trying to browse your page is

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: 'MyWebApp'.

Source Error:

Line 198: <add assembly="*"/>

As you can see the debug information is quite unclear and it would leave no trace of idea as to where the problem is.

The actual problem is because of the Microsoft Indexing Services which scans the Temporary ASP.NET Files and while doing so, the system puts a lock on the same.

To resolve this, the following steps need to be carried out:-

1. Start - Settings - Control Panel - Administrative Tools - Computer mangement.

2. Expand the services and applications node and select the Indexing service node.

3. Expand the Indexing Service Node and then select and expand the System Node.

4. Right click on Directories and select new directory. browse the path to the temporary asp.net files c:\winnt\microsoft.net\framework\v1.1.4322\.

5. Select the temporary asp.net files. give ok and then select the "NO" in the Include in index radiobutton.

6. give ok and then stop and start the indexing service.

this should solve the problem.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Monday, April 25, 2005 7:37 AM

Comments on this post

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot, I would never have thought about that...

It's working fine now :)
Left by Xapatta on May 16, 2005 2:59 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks mate. You're an absolute legend. I've been trying to sort out this problem for over a month.
Left by Denis on Jun 24, 2005 1:29 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks, you are the man.
Left by Kevin on Jun 29, 2005 4:32 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks very much!
Left by thanhdt on Jul 11, 2005 1:45 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
I was facing this pbm last one month...now its solved .thank u sir.thank u
Left by Arun on Jul 13, 2005 9:40 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
THANK YOU
Left by 8 hours checking not why working on Jul 17, 2005 8:52 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Excellent fix. thanks saved me hours of troublshoothing
Left by zorg2003 on Aug 11, 2005 9:15 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Good one bro. How the hell did you figure this one? I have been putting up with it for quite a while.

Cheers
Left by Raj Bulsara on Sep 25, 2005 8:42 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Dear Sir

I wil check it and defenitly inform you.

Raj
rajmca@yahoo.co.in
Left by Raj K Gupta on Sep 26, 2005 6:22 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
It works fine. No more restarting the Application , IIS and Rebooting. Thank you.
Left by Sushant Chalipat on Sep 27, 2005 7:12 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
I have this issue but am not using Indexing. Can you think of any other reason for the problem?
Left by Patrick O on Oct 11, 2005 8:41 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
You absolute bloody genius!

I've been tearing my hair out for about an hour now because of this. Thanks to you I still have some hair left...
Left by Pete on Oct 15, 2005 3:54 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
fantastic insight. how could one have known that files in temp asp.net folder are being locked by indexing services. C'mon Microsoft, there's got to be a better way to make this obvious or prevent this from happening in the first place. btw, thnx harish.
Left by obinna on Oct 19, 2005 9:43 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
I continue receiving the same error after following your guidance.
Left by AK on Oct 20, 2005 2:14 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Good work dude, this error has been annoying the hell out of me for days...
Left by Gaz on Nov 03, 2005 6:50 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks..... good looking out.
Left by CCT on Nov 30, 2005 9:54 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot sir.I really appriciate you
Left by Kishore on Feb 03, 2006 11:23 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thxq Very Much
Left by Saru on Mar 10, 2006 7:23 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
this is great man. i was thinking to reinstall. it was hatique restarting my system.
Left by jebarson on Mar 31, 2006 3:37 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot!!
Left by Tanveer Ahmed on Apr 11, 2006 8:42 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks tons! This was driving me batty and I couldn't find anything from msoft regarding it...
Left by Rey on May 05, 2006 6:47 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
well done! people like you make the world go around. thx a million.
Left by marx on May 31, 2006 3:50 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
its working... thx a lot
Left by steve on Jun 05, 2006 2:51 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
10x a lot
for week i'm fighting with this problem... :)
Left by muguran on Jun 23, 2006 11:23 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks!!!

This has been killing me on-and-off for over 3 weeks!
Left by Matt on Jul 05, 2006 7:25 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks from China!
Left by George on Jul 05, 2006 11:21 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
After doing this setting also i am facing the same problem
Left by raja on Aug 04, 2006 7:35 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Worked for me! TX!
Left by Dave on Aug 10, 2006 12:31 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Good solution. but dont know why with my application this solution didnt work.
After restarting Indesing and services at first run it no error came. but after changing some code when again I ran the application the that hell came again.
Can anybody suggest me where should be the problem?
Left by Chetan on Sep 27, 2006 3:57 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Worked for me thanks a lot
Left by Andy on Sep 28, 2006 12:55 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
You're a genius, this has been doing my head for a week.....
Left by Andrew on Oct 01, 2006 7:35 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Plese tell how to solve this problem
Left by lakshmi narayana on Oct 03, 2006 2:21 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
cheers mate.. :)

(from downunder)
Left by aussieBattler on Oct 04, 2006 7:19 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
thank you so much
Left by Kiran on Oct 25, 2006 7:22 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot. Instead of winnt I had to type windows (for XP Pro). What a relief.
Left by Johann on Oct 27, 2006 8:14 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot !!
Left by Pascal on Nov 28, 2006 6:25 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Apart from checking the Index Server. Do check the Antivirus log. You need to exclude the Temporary ASP.NET folder from being scanned in the Antivirus. This solved the problem for me.
Left by kshakes on Nov 29, 2006 10:10 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
This seemed to help but I'm still getting the problem sometimes. When I checked what program has a lock on files in the temporary ASP.NET folder, I found a program called cisvc.exe had a lock that was preventing me from running my app.

Here's what I found out about that exe file. I still don't know how to prevent it from locking files in my temp asp.net folder. Any ideas???

Description:
cisvc.exe is a process that belongs to the Microsoft Windows Operating System. It is used to monitor the memory usage in CIDAEMON.exe and prevent low memory problems. This is an essential system process and should not be removed. This program is an essential system process and should not be removed.
Left by Paul on Dec 07, 2006 5:36 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot .lot of time saving, i used to restart the system to solve this problem,
Now its solved.
thanks again.
ravijagannadh@gmail.com
Left by ravijagannadh on Dec 12, 2006 6:00 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Gr8, i was having this issue for more than 6months, just today i tried to solve it and its solved :)

Regards,
Gautham
www.GauthamIT.com
Left by Gautham on Dec 13, 2006 7:32 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks, it worked very good...thanks a lot, it was a pain in the ass every moment.
Left by Juan M. Garcia on Dec 22, 2006 10:03 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
thanks , it's working fine now
Left by narayana on Jan 17, 2007 6:10 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks, you are the MAN. What a pain it was :-)
Left by Bahaa on Feb 02, 2007 2:10 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
I also had this problem, but the sollutions described above did not solve the problem. Then I discovered that copernic desktop search was causing the problem. When closed it (shut down) the error disapeard :)
Left by Kenneth on Feb 28, 2007 9:00 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
thanks a million for this one :)
Left by Brad on Mar 16, 2007 2:30 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
You 'da man Harish! Keep following your binary bliss.
Left by Ryan on Jun 26, 2007 9:11 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks. You helped me out too.
Left by Sam on Dec 16, 2007 10:14 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Brilliant! I'm working on a Sunday to get caught up and this error was killing me. Thanks for the help!
Left by Heavy G on Jan 27, 2008 5:23 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot. This really helped me.
Left by Mahesh on Feb 12, 2008 7:34 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks. This really helped me. Amazing insight
Left by Mahesh on Feb 12, 2008 7:34 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Fantastic Fix - Although Microsoft should be cursed for allowing such a thing to happen with absoluetly no clues for an application developer.
Left by Rich Lusk on Feb 13, 2008 8:51 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
i had this message just now, and quickly thought it was some virus to think i actually put my password!!!good thing i didn't put MY password, get it?thanks a lot dude, awesome...anyway, i put in drive d:/ instead of c:/ as that's where my windows is found, will that be alright?
Left by Jay-Z on Mar 08, 2008 3:33 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
thanks a lot man!!!!
u saved my life
Left by bharat on Jun 02, 2008 9:32 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks, saved me a real headache.
Left by Matt Lacey on Sep 11, 2008 8:16 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Sincerest thanks, this makes a huge difference.
Left by Nicholas Cartwright on Sep 22, 2008 5:13 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thanks a lot. you 've got my heart.
Left by BlackSiam on Mar 26, 2009 1:24 PM

# <%@ Page language="c#" Codebehind="mainloginpage.aspx.cs" AutoEventWireup="false" Inherits="jsspucw.mainloginpage" %>

Requesting Gravatar...
please check this error.
Left by priyanka on Apr 10, 2009 10:09 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
thanks thanks thanks ....
Left by dessperated programer on Jun 25, 2009 5:08 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
obrigado, funcionou !!!
Left by Robson Mantovani on Jul 01, 2009 9:42 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
I had the same problem- There is another resolution. This applies to Windows Server 2003. Here's how:
1) Invoke IIS Manager (inetmgr.exe)
2) Expand Web Sites-->Default Web Site
3) Right-click on the app in question, and choose "Properties"
4) Note down the entry selected for "Application pool:"
5) Now, still in IIS Manager, expand "Application Pools"
6) Right-click on the application pool whose name was obtained in step 4, and choose "Properties"
7) In the Properties window, select the "Identity" tab
8) Under "Application pool identity", ensure that "Predefined" is selected
9) Click the dropdown for "Predefined"; select "Local System"
10) Click OK to the warning & save your changes
11) OK all the way out & restart IIS- check your app now; it should work
Left by SK on Jul 22, 2009 12:10 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
You could do what was mentioned above, but that would be causing a security risk, as the Local System account typically has full control of the local box. The better solution is to give the Network Service account (or the local IIS_WPG group) Change access (read, write, modify, delete access) to C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files. Then restart the Indexing Service, and stop and start the application pool.
Left by Noizi on Aug 13, 2009 8:35 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
the issue is not resolved at...tried all the ways :( i have to deploy the dll . on another server its working file on local server. When i keep the same dll on another server. It is throwing the error.
Checked the IIS settngs . both the settings on the 2 servers is anonymous
Left by mini on Aug 28, 2009 2:00 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
How the hell did you figure this one? I have been putting up with it for quite a while.
Left by mario oyunları on Sep 21, 2009 10:34 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Excelent !! you saved my life !!
Left by Miguel Aleman on Sep 25, 2009 9:50 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Many thanks for this. It still works after all these years!
Left by Alan J on Nov 06, 2009 2:31 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Many thanks, it is working fine and your solution save me a lot of time.
Left by Prasad on Dec 27, 2009 3:40 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
gr8 .. ur are best.. Many Thanks.
Left by ritzy on Feb 10, 2010 9:36 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
This is a very good post that I learned a lot from
Left by eyeshadow on Apr 11, 2010 11:04 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Thank you, thank you, thank you!!! This error has been tormenting me for so long!! Solved now! :)
Left by Cheap Laptops on Apr 13, 2010 7:28 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
you explained correctly and precisely , good , keep it up
Left by quran learning on May 01, 2010 9:37 AM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
Great post. Thanks for the help with this error message!
Left by Fred on Jul 30, 2010 3:26 AM

# Mr

Requesting Gravatar...
Thanks for your help - Great post.

Check out computers at Ebuyer.com for great prices and deals.
Left by David Low on Nov 22, 2010 5:44 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
the alternate way is to add IIS_IUSRS on security tab to the folder which requires access
Left by IIS on Jun 22, 2011 7:23 PM

# re: "Parser Error Message: Access is denied: Source Error: Line 198: <add assembly="*"/> "

Requesting Gravatar...
This really worked! Great Article. :) Thanks a lot.
Left by Zaheer Mazhar on Nov 28, 2011 4:31 PM

Your comment:

 (will show your gravatar)