I was getting an error today complaining about loading one of the assemblies in my web service.
I spent hours adding all sorts of security privildges to the folders in windows and in IIS.
initially I had the dll name in my google search, this lead me down completely the wrong path, finally I typed in the text in the title of this blog post
In the end the problem turned out to be permission on temporary ASP.NET folder and I finally found this article on how to set permission for the Temporary ASP.NET folder, which you can read here
To assign write permissions to the Temporary ASP.NET folder
- Click Start, click Run, type explorer, and then click OK.
- In Windows Explorer, move to the <drive:>\Windows\Microsoft.NET\Framework\v2.0.50727 (or <drive:>\WinNT\Microsoft.NET\Framework\v2.0.50727, where appropriate) folder.
- Right-click Temporary ASP.NET Files, and then click Properties.
- In the Temporary ASP.NET Files Properties dialog box, on the Security tab, click Add.
- In the Enter the object names to select text box, type <Domain or Computer name>\RunTimeUser, and then click OK.
Note: As appropriate, substitute the user name for the anonymous user account you created for “RunTimeUser”.
- In the Temporary ASP.NET Files Properties dialog box, in the Groups or user names list, select the RunTimeUser account.
- In the Permissions for RunTimeUser list, select Write in the Allow column. (Read & Execute and Read should already be selected in the Allow column Click OK.
- In the Security dialog box, click Yes.
- Repeat steps 3 through 8 for the Web service accounts: CatalogWebSvc, MarketingWebSvc, OrdersWebSvc, and ProfilesWebSvc.