- Home /
UnauthorizedAccessException | I Need Help Here.
Hi, I'm Oleg. Today I want to build a progect in Unity 2017.4.36f1 (64-bit) and then me in the Colsole appeared Error about UnauthorizedAccessException: Access to the path "D:\" is denied. Please HELP me with that problem. More information you can see here.
UnauthorizedAccessException: Access to the path "D:\" is denied. System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0) System.IO.Directory.CreateDirectory (System.String path) (at :0) UnityEditor.Android.PostProcessor.Tasks.ZipIl2cppSymbols.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at :0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:272) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Uhm, could it be that you try to open / build your project from a read only medium like a CD / DVD drive? If not you might have placed your project in a restricted path. $$anonymous$$aybe you have screwed up your security settings of that drive. There's not much we can do about that, it's your machine. Unity needs write permission on the project folder.
Answer by sacredgeometry · Jan 23, 2020 at 09:32 PM
It's exactly what it says. You are trying to create a folder on the D drive and your application doesn't have permissions to do it.
The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.
https://docs.microsoft.com/en-us/dotnet/api/system.unauthorizedaccessexception?view=netframework-4.8