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.
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.
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.
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.
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.
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