{"id":128,"date":"2009-09-05T17:02:37","date_gmt":"2009-09-05T22:02:37","guid":{"rendered":"\/\/www.beauchamp.me\/techno\/?p=128"},"modified":"2011-06-06T13:32:19","modified_gmt":"2011-06-06T18:32:19","slug":"128","status":"publish","type":"post","link":"https:\/\/www.beauchamp.me\/techno\/blog\/2009\/09\/05\/128\/","title":{"rendered":"Could not load file or assembly \u2018AjaxControlToolkit\u2019 or one of its dependencies. Access is denied."},"content":{"rendered":"<p>I was getting the following error message when I was trying to access a web application using the Ajax Control Toolkit on a new server:<\/p>\n<blockquote><p>Could not load file or assembly \u2018AjaxControlToolkit\u2019 or one of its dependencies. Access is denied.<\/p><\/blockquote>\n<p>Looking deeper, I found out that the error 0x80070005 was raised.<\/p>\n<p>Reading various threads and blogs, I eventually found out that the problem was caused by the fact that the site is using impersonation. Look for a line like the following one in your Web.config file:<\/p>\n<blockquote><p><span style=\"color: #008000;\"><span style=\"color: #008000;\"><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\">&lt;<\/span><\/span><span style=\"color: #a31515;\"><span style=\"color: #a31515;\">identity<\/span><\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\"> <\/span><\/span><span style=\"color: #ff0000;\"><span style=\"color: #ff0000;\">impersonate<\/span><\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\">=<\/span><\/span><span style=\"color: #000000;\">&#8220;<\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\">true<\/span><\/span><span style=\"color: #000000;\">&#8220;<\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\"> <\/span><\/span><span style=\"color: #ff0000;\"><span style=\"color: #ff0000;\">userName<\/span><\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\">=<\/span><\/span><span style=\"color: #000000;\">&#8220;&#8230;<\/span><span style=\"color: #000000;\">&#8220;<\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\"> <\/span><\/span><span style=\"color: #ff0000;\"><span style=\"color: #ff0000;\">password<\/span><\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\">=<\/span><\/span><span style=\"color: #000000;\">&#8220;&#8230;<\/span><span style=\"color: #000000;\">&#8220;<\/span><span style=\"color: #0000ff;\"><span style=\"color: #0000ff;\"> \/&gt;<\/span><\/span><\/span><\/span><\/p><\/blockquote>\n<p>Because the web application is running under a specific user, I had to grand Full Control to that user on the following directory:<\/p>\n<blockquote><p>C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files<\/p><\/blockquote>\n<p>I&#8217;m not sure if it is a security breach to grant Full Control to a user on that directory, but it solved my problem. Also, in the reading I did, I saw that there were other reasons for this error to occur.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was getting the following error message when I was trying to access a web application using the Ajax Control Toolkit on a new server: Could not load file or assembly \u2018AjaxControlToolkit\u2019 or one of its dependencies. Access is denied. Looking deeper, I found out that the error 0x80070005 was raised. Reading various threads and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-aspnet"],"_links":{"self":[{"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":3,"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/posts\/128\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beauchamp.me\/techno\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}