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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Error on Every Project I Make!

Discussion in 'Editor & General Support' started by ColouredPixelsUnity, Jul 29, 2015.

  1. ColouredPixelsUnity

    ColouredPixelsUnity

    Joined:
    Aug 10, 2014
    Posts:
    78
    I get this error on every project I make


    Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\Joey\Documents\Prototype Fighting 3d\Practice\Temp\Assembly-CSharp.dll.mdb" is denied.

    The rest is included in the error at the bottom.

    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

    at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] in <filename unknown>:0

    at Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile (Guid guid) [0x00000] in <filename unknown>:0

    at Mono.CSharp.SymbolWriter+SymbolWriterImpl.WriteSymbolFile () [0x00000] in <filename unknown>:0

    at Mono.CSharp.SymbolWriter.WriteSymbolFile () [0x00000] in <filename unknown>:0

    at Mono.CSharp.CodeGen.Save (System.String name, Boolean saveDebugInfo, Mono.CSharp.Report Report) [0x00000] in <filename unknown>:0

    at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0

    at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0


    Is there ANYWAY I can fix it! I can't use Unity!
     
  2. ColouredPixelsUnity

    ColouredPixelsUnity

    Joined:
    Aug 10, 2014
    Posts:
    78
  3. Mabenan

    Mabenan

    Joined:
    Feb 7, 2014
    Posts:
    132
    This error assumes that you don't have the permission to access the file please check your security options of the file and try to start unity as administrator.