System.UnauthorizedAccessException to Temp dll.mdb when running project

Every time I edit a script in MonoDevelop (or with the built in editor) I get this error when running my project:

Internal compiler error. See the console log for more information.

output was:Unhandled Exception: System.UnauthorizedAccessException:

Access to the path “blah…\Temp\cf291a6f7e472a84c8539e503348b31f.dll.mdb” is denied.

(file path truncated for brevity)

Closing the editor and re-opening causes all the scripts to be re-imported (and the Temp folder to be replaced). Then it works again (until the next edit).

Running Windows 7, with Unity 3.3 Pro.

Anyone else experienced the same? Any solution

I actually found it out.

You have to add ASP.NET user’s to the project folder’s permissions, and give it full control.

I added both the IUSR group and the NETWORK SERVICE user; the error went away.