Unity/memo

Unity UnauthorizedAccessException 에러

devmae 2014. 6. 23. 17:27

UnauthorizedAccessException: Access to the path "E:\work\perforce_root\RealDualGostop\trunk\UnityVS.trunk.CSharp.csproj" is denied.

System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/FileStream.cs:320)

System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share)

(wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)

System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/StreamWriter.cs:124)

System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding)

(wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)

System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/File.cs:626)

SyntaxTree.VisualStudio.Unity.Bridge.Project.WriteFileIfNecessary (System.String fileName, System.String content)

SyntaxTree.VisualStudio.Unity.Bridge.ProjectFile.WriteIfNecessary (SyntaxTree.VisualStudio.Unity.Bridge.FileGenerationHandler generationHandler)

SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.GenerateProjectFiles ()

SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.GenerateProject ()

SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator+<>c__DisplayClass1.<.cctor>b__0 ()

UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/EditorApplication.cs:214)


유니티 프로젝트를 열었더니 계속 Log창에 찍히는 메세지들... 어쩌고 저쩌고...

해당 파일이 읽기 전용으로 되어 있어서 그렇다.
파일속성에 "읽기전용"을 체크해지하면 에러가 발생하지 않는다.