- Home /
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
Have you found out what the problem was? I'm facing exactly the same thing, it seems, as soon as I'm adding Unity extensions to my project.
Answer by mduchesneau · Jul 18, 2011 at 03:08 AM
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.
That seems like a bit of a WTF... and yet it seems to work.. I wonder what ASP.NET user permissions have to do with Unity temp folder access...
Your answer
Follow this Question
Related Questions
Updating Player Settings with code 2 Answers
Is there a way to mass assign materials? 4 Answers
Searching a project for "Missing (Mono Script)" 5 Answers
Combine Children In-Editor? 2 Answers