- Home /
How do I prevent Internal compiler errors?
At every other change in my scripts I'm getting the error shown below. Restarting Unity and deleting some files in the directory generally fixes it, but that doesn't always work straight away and its starting to slow down development. Unfortunately I can't really understand what any of debug information after the first part means. Does anyone know how to prevent it or can decipher the error message?
Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\Sara\Documents\SpaceHopper\Temp\Assembly-CSharp.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
Does that information include what was written to the log? You can access the editor log from the console by clicking the dropdown underneath the X
Have you tried starting in Ad$$anonymous$$ mode? Also, when you installed Unity, did you install in Ad$$anonymous$$ mode? I say this as you seem to be denied access to that protected folder
Access to the path "C:\Users\Sara\Documents\SpaceHopper\Temp\Assembly-CSharp.dll.mdb" is denied
And you are including the appropriate headers in your scripts?
import System;
import System.IO;
for uJS, keyword
using
for C#
Could also be a sharing error, if the file is open in another Application that isn't playing nicely.
Your answer
Follow this Question
Related Questions
Undefined symbol for architecture arm64: linker failure 0 Answers
Raycast from the wrong position. 1 Answer
threading if() problem 1 Answer
Import Componet ( Variable ) Error Unexpected Token 3 Answers
Unity 4.0.0f7 GetThreadContext failed 2 Answers