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.



Panglima Pejuang
November 7, 2011
As my experience to solve this problem is: give the access to folder “Temporary ASP.NET”
exist in : “C:\Windows\Microsoft.NET\Framework\v2.0.50727″
Right click folder –> properties –> Security tab –> Add “NETWORK SERVICE” –> give Modify access or full control.
and try make some crm transaction.., if still error , try to :
1. iis reset ….
2. open control panel –> IIS manager –> expand Server name node –> click “Application Pools” –> high-light the “CRMAppPool” –> click “Recycle”
myfavoritelines
December 19, 2011
Hi
Just one addition to this: I fell foul of the fact that the temporary asp.net folder was under Framework64 and not Framework – so watch out!