Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Internal compiler error help

Discussion in 'Editor & General Support' started by simplicitygs, May 15, 2014.

  1. simplicitygs

    simplicitygs

    Joined:
    May 14, 2014
    Posts:
    9
    Hello, I will save a script I am working on in MonoDevelop and instantly when going back to unity recieve this error message. But when I close unity and re-run it I no longer have the error message and my script will work fine/have no actual errors. I attached the error message I get. Does anyone know what the problem may be and how to fix? Internal compiler error. See the console log for more information. output was:

    PHP:
    Unhandled ExceptionSystem.UnauthorizedAccessExceptionAccess to the path "C:UsersNameDocumentsGameTempAssembly-CSharp.dll.mdb" is denied.

        
    at System.IO.FileStream..ctor (System.String pathFileMode modeFileAccess accessFileShare shareInt32 bufferSizeBoolean anonymousFileOptions options) [0x00000in <filename unknown>:
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    I suspect the compiler is trying to write to the mdb file whilst another process has it open. Without know more about your machine, I'll guess that you have some anti-virus software which is taking a dislike to this file. As an experiment, disconnect from the internet and turn off your AV, or if you can, tell the AV to not look in the folder where your project lives, then see if that helps. If it does not help, and a reboot doesn't make any difference, then let us know and we'll try and think of some other tests.
     
  3. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    Yeah, that's a stupid bug that I get all the time. I have to run Unity with my real-time scanner turned off otherwise I get an error very much like that.