Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

I wanted to post a solution to an issue that comes up every time I have to setup a new developer in our organization:
 
    Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.
 
My solution is to grant Full Control to the "Everyone" group to the folder C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
 
I know there are other solutions to this problem, but this one seems the simplest for me.
 
Marcie
Published Thursday, April 01, 2010 3:33 PM by datagridgirl
Filed under:

Comments

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Welcome back Datagrid Girl! Are you blogging somewhere else!?

Friday, April 02, 2010 9:26 AM by Darren Swartzendruber

# Twitter Trackbacks for Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied. - Datagrid Girl [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied. - Datagrid Girl         [asp.net]        on Topsy.com

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Hi Darren,

Not blogging anywhere else, just haven't been blogging anywhere for a while.  Thanks for asking.  Hopefully I'll be getting back into this.

Marcie

Saturday, April 03, 2010 12:57 PM by datagridgirl

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Glad to see you're blogging again, someone needs to take charge of making sense of this control!

Monday, August 30, 2010 5:54 PM by Albert Perrien

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Thanks Datagrid Girl.  Just to follow up...I had the same problem and did as you suggested.  I also granted Everyone full control of version 4 of the framework:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

Tuesday, January 11, 2011 5:32 PM by Rosco

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

If your application is using impersonation, the identity should have access to this directory.  On windows server 2008/vista/7 put the identity in the IIS_IUSRS group.

Monday, January 24, 2011 4:38 PM by Guillaume

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Welcome back datagirl!!!

Wednesday, March 02, 2011 11:11 PM by Enrique

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied. im still facing the problem.

Saturday, April 30, 2011 1:10 AM by madhu sudhan

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Yes. Granting access to every one also worked for me.... but is int it too risky....

Tuesday, July 12, 2011 5:35 PM by Mohan deval

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Hi All,

I had the same issue On windows server 2008, put the identity in the IIS_IUSRS group it has started working fine.

Thanks alot Guillaume.

Regards,

John

Tuesday, August 30, 2011 9:13 PM by John

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Guillaume - you are right. Impersonation problem.

Thursday, September 01, 2011 11:26 AM by Jay

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

and delete all files  from "Temporary ASP.NET Files" folder.

and u can skip this error

Thursday, October 13, 2011 2:28 AM by aditya pratap singh

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

comment the impersonate from web.config that will also work

Friday, January 20, 2012 9:32 AM by Ashish Sharma

# re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

Check for impersonation is web.config.

Friday, October 05, 2012 9:29 AM by Piyush Mahajan

Leave a Comment

(required) 
(required) 
(optional)
(required)