- Home /
How to solve "Internal compiler error."?
Hi, Since this weekend I'm getting this internal compiler error. I try change some code, sometimes I only add a whitespace in the code, then when Unity refreshes it works, but sometimes it doesn't work and I try to delete some temporary files and etc. I've already tried:
1 - Remove Temporary files. 2 - Remove Library files. 3 - Reimport all the project from the repository. 4 - Copy the project to another folder. 5 - Disable the svn. 6 - Sync project with monodeveloper.
I'm working with a team and I'm the only one having this problem and it's definitely not a code error.
The error is shown below.
obs: Assembly-CSharp-firstpass.dll.mdb is shown when I start unity, if a get the things to work again, then after modify some scripts and unity recompiles them, I get an error refering to Assembly-CSharp.dll.mdb.
Can anyone please help me? I'm begging :(
Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.UnauthorizedAccessException: Access to the path "F:\Workspace\UnityProjects\hackSlashCloudForge\trunk\Temp\Assembly-CSharp-firstpass.dll.mdb" is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] in :0
at Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile (Guid guid) [0x00000] in :0
at Mono.CSharp.SymbolWriter+SymbolWriterImpl.WriteSymbolFile () [0x00000] in :0
at Mono.CSharp.SymbolWriter.WriteSymbolFile () [0x00000] in :0
at Mono.CSharp.CodeGen.Save (System.String name, Boolean saveDebugInfo, Mono.CSharp.Report Report) [0x00000] in :0
at Mono.CSharp.Driver.Compile () [0x00000] in :0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0
This may or may not work, but I've been having some issues with $$anonymous$$onodevelop and the Assembly-CSharp-firstpass when I first run the program it always fails to load. In the solution window within monodevelop you can right click the assembly and reload it. Also make sure you are running with ad$$anonymous$$istrator privileges.
I've been using Unity for almost a year and I just started getting this error for the for the first time today.
Answer by Nievinski · Dec 20, 2013 at 10:18 PM
Finally I solved my problem. I searched for many different topics but this is the one who saved me. http://answers.unity3d.com/questions/491473/internal-compiler-error-8.html
It was the antivirus blocking the access. Deactivating the antivirus solved my problem.
Hi, I am getting the same error right now. "Internal Compiler Error, access to path.... is denied." I understand it may be my anti virus but i'm a bit uncertain as to what action to take. Obviously I don't want to turn off my anti virus completely, and I don't want to keep having to turn it off and on every time I create a new unity project. Is there a easier to way to void Unity in my anti virus? I am using $$anonymous$$cAfee.
Answer by radsimu · Sep 10, 2015 at 06:27 PM
This also happens to me when my Unity project sits in a Dropbox folder. If Dropbox syncs at the same time with some stuff that Unity is doing, this error appears. I restart unity and it work ok. It happens only sometimes.
Answer by gm2008 · Aug 26, 2014 at 04:33 PM
I encountered same problem. It was caused by my Comodo software's Sandbox function. Instead of turning the function off, I looked into the detailed configurations and moved the relevant "Sandboxed Files" and "Uncategrized Files" to "Trusted Files", then it worked.