Can't create a new script without compiler errors....
I'm been working on a project for a few months , for the last 2 days , it won't let me create a new script. When I do it says that I have compiler errors.
This is BEFORE I even do anything with the script. I just create the new script and give it a name and bam, compiler errors. Can someone please help me figure out what might be causing this and how to fix it?
This is the compiler error I get:
Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\Public\Documents\Unity Projects\New Unity Project 3\Temp\Assembly-CSharp.dll.mdb" is denied.
at System.IO.FileStream..ctor (System.String path, File$$anonymous$$ode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, File$$anonymous$$ode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] in :0
at System.IO.FileStream..ctor (System.String path, File$$anonymous$$ode mode, FileAccess access) [0x00000] in :0
at $$anonymous$$ono.CompilerServices.SymbolWriter.$$anonymous$$onoSymbolWriter.WriteSymbolFile (Guid guid) [0x00000] in :0
at $$anonymous$$ono.CSharp.SymbolWriter+SymbolWriterImpl.WriteSymbolFile () [0x00000] in :0
at $$anonymous$$ono.CSharp.SymbolWriter.WriteSymbolFile () [0x00000] in :0
at $$anonymous$$ono.CSharp.CodeGen.Save (System.String name, Boolean saveDebugInfo, $$anonymous$$ono.CSharp.Report Report) [0x00000] in :0
at $$anonymous$$ono.CSharp.Driver.Compile () [0x00000] in :0
at $$anonymous$$ono.CSharp.Driver.$$anonymous$$ain (System.String[] args) [0x00000] in :0
it says unauthorized access. I think it has to do with permissions of the file or the folder
Is the class name inside the script the same as the filename? That gets people a lot