System Unauthorized Access

I use Windows 8 in my computer (yes, I know, using Windows is the most terrible sin for a programmer; but you know, I’m just a rookie!), and when I’m working with Unity editor, sometimes appers this error message:

<<
Unhandled Exception: System.UnauthorizedAccessException: Access to the path “C:\Users\Public\Documents\Unity Projects\probadura2\Temp\Assembly-CSharp.dll.mdb” is denied.

The problem is that the message is becoming more frecuent, and forces me to exit and restart Unity again, because the play mode won’t start unless all errors are solved.

What can I do (appart of changing my OS)?

Quick question: Are you running Unity as administrator?? :slight_smile:

I have had the same problem for quite a while. Part of the problem may also be a firewall preventing Unity from accessing certain points. Running as Administrator didn’t do a thing for me.

1 Like

This post from a bit ago may help. http://forum.unity3d.com/threads/internal-compiler-error-unhandled-exception-system-unauthorizedaccessexception.133493/
What kind of antivirus software do you have?? Also, the second post from user vastor is hilarious!!!

1 Like

That’s it, McAfee is my antivirus, as well! So it must be the problem, not Windows…(by the way, yes, I run Unity as administrator). I’ll try to change the firewall configuration to make McAfee leaves Unity alone, firstly. If it doesn’t work, then I’ll have to re-install the antivirus.

Thanks a lot for your help, holliebuckets (and 230000751). I’ll tell you if I’m able to solve the problem.

1 Like

Yep, Mcafee is it. I run Viper security on another machine and do not have any problems. As you said, just configuring the firewall settings should take care of this problem. :slight_smile:

the solution above does not work for me - I’m on windows 10 (alas!), local user acces (no admin), got Avast antivirus and never had this issue with previous unity3d releases on this same pc setup.

So have you allowed private and public access for the Unity application in your firewall? If so, that should have fixed it.

I frequently got error messages such as these, which seemed to be caused by my antivirus reading the file at the same (turning off/excluding the Unity project path in my antivirus helped). Then I got an SSD when I upgraded to Windows 10 and no more issues. I believe the faster speed of the SSD might have helped, but what might help you is to exclude your Unity project path in your antivirus.

lol I checked and windows fw grant no access whatsoever to unity editor - anyhow since the previous post I haven’t had any other similar error messages but I opened the firewall for the editor anyway, let’s see how it goes

2 Likes

please keep us posted :smile: and thank you so much for all the feedback!!

There you go: have been a while since the last time I’ve seen it and today here it comes again, and on a different unity release (5.2.2.f1) also:

Anyhow, just closing and reopening Unity was enough to made it disappear and keep on working.

I am curious, why would the firewall be in any way involved when Unity’s compiler is trying to write/read a file on the local development machine?