Giving me a "System.UnauthorizedAccessException" every time I change a script

Hello. I’m really stuck with this problem, so I take my chances here.

Since a few days, I have the weird problem that, everytime I change a script in MonoDevelop, save it and tab back to Unity, I get this Error:

“System.UnauthorizedAccessException: Access to the path “\Temp\Assembly-CSharp.dll.mdb” is denied.”

The only thing that helps is restarting Unity…

Any solutions?

I found the solution to this problem. Finally.

McAfee’s Realtime Scan is the problem. I disabled it. Now everything is fine again.

I found you dont have to disable it completely…just the " use active protection for live defense" piece.

I also had this problem randomly come up and I don’t know why. I’m a beginner with the program however instead of McAfee I had Avast. So I uninstalled it, restarted my computer, then ran the program as administrator and its working fine.