We have a webservice running on IIS written in c#.
Lately we've been having this Could not load file or assembly "mycustomlibrary.dll". Access is denied.
It doesn't happen every time on the same assembly. Any pointers to where to look?
Found the issue was related to impersonation. Some calls where impersonated and the impersonated user did not have rights to %SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files
here are more details on ACL
There are a lot of things that can throw an access denied error, sometimes it doesn't have anything to do with permissions at all.
So, we're going to need more information, such as;