Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

How to resolve UnauthorizedAccessException?

$
0
0
Running Unity 5.1.1f1 I've tried different patcher plugins on the unity store, and each of them keep giving me the same, or similar error. UnauthorizedAccessException: Access to the path "I:/Unity/Mimycx/MGPatcherBuilder/Win/x86/content/1\Mimycx_Data\Managed\DialogueSystem.dll" is denied. System.IO.File.Delete (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:179) System.IO.Directory.RecursiveDelete (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/Directory.cs:195) System.IO.Directory.RecursiveDelete (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/Directory.cs:190) System.IO.Directory.RecursiveDelete (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/Directory.cs:190) System.IO.Directory.Delete (System.String path, Boolean recursive) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/Directory.cs:205) MGPatcherToolsScript.copyToSource (Int32 countArray, System.String platform_name) (at Assets/MGPatcherTools/MGPatcherBuilder/Editor/MGPatcherToolsScript.cs:757) MGPatcherToolsScript.buildGame () (at Assets/MGPatcherTools/MGPatcherBuilder/Editor/MGPatcherToolsScript.cs:739) MGPatcherToolsScript.OnGUI () (at Assets/MGPatcherTools/MGPatcherBuilder/Editor/MGPatcherToolsScript.cs:370) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) MGPatcherToolsScript ln 739 calls a function defined a couple lines further down. Inside of this function is a line (757) that has an if on condition: Directory.Exists(...+"content/"+...) If the directory exists, it calls Directory.Delete(...+"content/"+...,true); I've come to the conclusion that it is trying to delete the dialoguesystem.dll, which is a dll for another plugin that's vital to my project. Any ideas how to remedy the situation? I've already made sure I've got administrator privileges and that Unity is in fact being run in Administrator. I should note; I have made a very tiny example project with the patcher that worked with a nearly empty scene.

Viewing all articles
Browse latest Browse all 7934

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>