- Home /
Unhandled Exception: System.UnauthorizedAccessException
Hey guys,
So I have been having this issue for awhile now. Where Unity says the comuter refused permission for it to access the compilers. Here is the error:
Internal compiler error. See the console log for more information. output was:Assets/Downloaded Assets/CreateScriptDialog/Editor/NewScriptWindow.cs(400,34): warning CS0618: `UnityEditor.EditorGUIUtility.LookLikeControls(float)' is obsolete: `LookLikeControls and LookLikeInspector modes are deprecated. Use EditorGUIUtility.labelWidth and EditorGUIUtility.fieldWidth to control label and field widths.'
Assets/Downloaded Assets/WorldBuilder/Editor/WorldGen.cs(125,35): warning CS0618: `UnityEditor.EditorGUILayout.ObjectField(string, UnityEngine.Object, System.Type, params UnityEngine.GUILayoutOption[])' is obsolete: `Check the docs for the usage of the new parameter 'allowSceneObjects'.'
Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonViewInspector.cs(20,26): warning CS0618: `UnityEditor.EditorGUIUtility.LookLikeInspector()' is obsolete: `LookLikeControls and LookLikeInspector modes are deprecated.'
Assets/Photon Unity Networking/Editor/PhotonNetwork/ServerSettingsInspector.cs(26,26): warning CS0618: `UnityEditor.EditorGUIUtility.LookLikeInspector()' is obsolete: `LookLikeControls and LookLikeInspector modes are deprecated.'
Unhandled Exception: System.UnauthorizedAccessException: Access to the path "D:\projects\Unity\Heli Duel\Temp\Assembly-CSharp-Editor.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
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess)
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
I have set all the permissions of the drive, the folders, and the files to be full access for everything. I had this error some time ago, but I had fixed it by turning off McAfee Realtime Scanning. But as you can see, now I'm getting it again.
I'm not sure what is causing it, so any tips would be nice,
-Keith
I could really use some help or suggestions, as I'm on a deadline for June 30th :).
Answer by Jeff-Kesselman · May 10, 2014 at 04:11 PM
It looks to me like you are trying to open the mdb not the dll?
Well that is what I can't figure out. This is an error with Unity trying to access the compiler, so I don't know what is going in there :\
Cause I thought it should access the dll, but as I don't know what an mdb is, I don't know if it is irregular behavior to try to access it, or not.
Your answer
Follow this Question
Related Questions
Script FPS Game Emitter Compiler error,ParticleEmitter now wont work 0 Answers
the type or namespace name "PostProcessingProfile" could not be found 0 Answers
UnityEditor Compiling Error :: VisualStudio Crash 0 Answers
I cant open any scripts. 0 Answers
Workflow: How can I run a scene without fixing compiler errors? 1 Answer