Last post Apr 16, 2009 04:08 AM by CurtWRC
Apr 15, 2009 10:30 AM|CurtWRC|LINK
Can anyone please explain why I'm getting this error:
Could not load file or assembly 'Ajax' or one of its dependencies. Access is denied.
The site has been live for several months, and this error has only recently started popping up.
Apr 15, 2009 11:59 AM|SurendraKishore|LINK
we can't really guess wat happened when site is online n suddenly pop's up this kinda things.
let's checkout somethings first here.
If all this ok, I suggest that you should add reference to the new AjaxControlToolkit.dll and recompile it.
if still problem persists, then might be the issue with access to the Temporary ASP.NET Files access control.
Go to "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" ( Modify the framework version, root directory etc according to your environment. ) Now, right-click and open up the Security tabs for this folder. Grant "Full control" to the
'users' group. (Modify will also work, thought I didn't try it out) However, it this is a security problem for your environment to grant full control to all users in Users group, another Solution could be to put the concerned assemblies lo GAC which I avoided
as it was not logical to put the assemblies into GAC in my scenario
Apr 15, 2009 12:13 PM|CurtWRC|LINK
Thanks for your reply. I don't know whether this better explains, but I've had a response from the hosting company. They said an illegal operation is being caused by the site. Does this make any sense?
Apr 15, 2009 12:47 PM|SurendraKishore|LINK
Yeah, they have blocked or edited the access rights for your websites and there dependent assemblies i guess. so the problem lies with the hosting server, you need to solve it with there technical team.
Apr 15, 2009 10:21 PM|Bruce L|LINK
1) Are you uploading the AJAX assembly to your bin directory or are you accessing the ones installed in the GAC?
2) Does your hosting company have the version of AJAX your application is trying to use (2.0, 3.5, etc.)?
3) Based on the error, it definitely looks like there's a permission issue on the server .
Apr 16, 2009 04:08 AM|CurtWRC|LINK
Thanks for your replies. I'll contact the hosting company with the question youve asked.