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

[SOLVED}file access denied?

Discussion in 'Scripting' started by chasemcpherson, Feb 8, 2015.

  1. chasemcpherson

    chasemcpherson

    Joined:
    Sep 4, 2014
    Posts:
    17
    ive had this problem before in unity where file access has been denied, ive fixed it before just by resaving my script, but unity crashed and i had to restart it and now it wont let me fix the problem.


    Internal compiler error. See the console log for more information. output was:
    Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\Chase McPherson\Documents\Survival game\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 <filename unknown>:0

    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] in <filename unknown>:0
     
  2. tango209

    tango209

    Joined:
    Feb 23, 2011
    Posts:
    379
    Have you checked that file's properties or if it is even still there?
     
  3. chasemcpherson

    chasemcpherson

    Joined:
    Sep 4, 2014
    Posts:
    17
    yes, the file is still there. i just figured out i had to turn off my antivirus real-time scan for some reason
     
  4. llew2104

    llew2104

    Joined:
    Mar 10, 2015
    Posts:
    2
    What version did this happen on because I'm wondering if your antivirus solution will help me in unity 5.