- Home /
UWP Build Error
Hey Guys, I'm trying to build my game for the Universal Windows Platform and i'm always getting this error:
UnauthorizedAccessException: Access to the path "Temp\StagingArea\Data\Managed\sqlite3.dll" is denied.
System.IO.File.Delete (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:179)
System.IO.Directory.RecursiveDelete (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:195)
System.IO.Directory.Delete (System.String path, Boolean recursive) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:205)
Utility.DeleteDirectory (System.String path) (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/Utility.cs:303)
PostProcessWinRT.MoveDataManagedToRoot () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:469)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:121)
UnityEditor.Metro.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:133)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
and this one:
Error building Player: UnauthorizedAccessException: Access to the path "Temp\StagingArea\Data\Managed\sqlite3.dll" is denied.
I already tried to run Unity as administrator but it's not helping. I don't get any errors when building for Android or PC and i'm using the newest version of Unity.
Does anyone know how to fix this ??
Thanks in advantage
Answer by Mythed_ZK · Oct 13, 2016 at 07:00 AM
Hey @GuitarKirby, I have a same problem, Do you have the solution about this problem?
Answer by colinday · Oct 31, 2016 at 04:30 PM
I have the exact same issue with another .dll using Unity 5.4.2. I've tried running as administrator, turning off windows defender file scanning, excluded the entire development directory from indexing, deleted the Library and re-imported all assets and still no luck.
Any help much appreciated!
Your answer
![](https://koobas.hobune.stream/wayback/20220612074149im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Building solution generated by building to uwp causes pc to bluescreen 0 Answers
Finding the Problematic dll in "Extracting Referenced dlls Failed" (Unity5) 1 Answer
importer.GetNPOTScale() == TextureImporter::kNPOTKeep 1 Answer
TCP client constructor error in Universal Windows Platform build 0 Answers
Universal 10 memory leak, blank scene 0 Answers