Access is denied: 'Ajax'.

I hate this error when every time when I restart my machine .Well for time being i stopped my Indexing (Right click on My Computer-->Manage-->Service and Application--->Indexing Service---->Exclude you .Net framework directory).I did this both on system and web as mentioned on Microsoft article but some reason it is not stopping this error. I do not have any choice other than stopping whole indexing. Well this is OK on local machine but my boss will kick me if this happen on production server ;)  

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

Source Error:

Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/> Line 199: </assemblies> Line 200: </compilation>


Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 198

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Ajax' could not be loaded.

 

Suresh Behera

6 Comments

  • I am not totally clear on this subject, but isn't the &lt;add assembly=&quot;*&quot;/&gt; part where private assemblies are loaded.



    Perhaps you could try excluding the directory where the actual application is stored as well. Also, for assemblies referenced with 'Copy Local' equal to false, exclude the directory where those assemblies are located.



    Post back when you get it working. I would like to know the fix.

  • What kind of boss would be unhappy with you improving the system? The indexing service takes up space/memory, decreases effective disk access speeds in some cases and sometimes slows down the machine overall.



    Oh, and it has some vulnerabilities, too.



    All this for what? Fast *file searching*? How often do you do that? If you do it alot, you probably have noticed that the indexing service actually hindered you on occasion by searching your hard drive instantly and returning no results for *.txt (or another similarly absurd result).



    Turn it off and forget it.

  • All you should have to do is go into IIS and uncheck the index flag for the Web Site or virtual directory.

  • I had tried "Ron Shelton"'s method, it was successfully

  • Hi
    I am using asp.net 2.0. And I am tryin to run the application the same error will through. If I restart the machien then it will work well.I am usign ajax too in my project .Please do the needful.

  • Hello, I was encountering the same error with asp.net 1.1. I unchecked the indexing from IIS and it worked fine. Thanks Justin.

Comments have been disabled for this content.