Aracılığıyla paylaş

.Net 9 MAUI MVVM System.UnauthorizedAccessException Error

Volkan OVALI 0 Saygınlık puanı
2025-01-17T12:31:18.74+00:00

Hi,

After successfully running my .Net 9 MAUI MVVM application on Android Virtual Machine, when I made a major change in the code that Hot Reload does not support, sometimes when I take a short break and sometimes when I want to work on the project the following days, I get the following error. My development environment is Windows 10 Pro, VS 2022 version 17.12.4

In order to start working again, I need to do the following:

  1. Close All Tabs
  2. Close The Solution
  3. Delete bin and obj folders
  4. Open The Solution
  5. Clean Solution
  6. Rebuild Solution

ERROR MESSAGE:

CODE: XALNS7019

DESCRIPTION:

System.UnauthorizedAccessException: Access to the path 'A:\xyz\Documents\Visual Studio 2022\source\repos\TakvimDeneme2\TakvimDeneme2\obj\Debug\net9.0-android\android\assets\x86_64\TakvimDeneme2.dll' is denied.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.File.InternalDelete(String path, Boolean checkHost)

at Microsoft.Android.Build.Tasks.Files.CopyIfChangedOnce(String source, String destination) in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/Files.cs:line 197

at Microsoft.Android.Build.Tasks.Files.CopyIfChanged(String source, String destination) in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/Files.cs:line 176

at Xamarin.Android.Tasks.MonoAndroidHelper.CopyAssemblyAndSymbols(String source, String destination) in /Users/runner/work/1/s/xamarin-android/src/Xamarin.Android.Build.Tasks/Utilities/MonoAndroidHelper.cs:line 394

at Xamarin.Android.Tasks.LinkAssembliesNoShrink.CopyIfChanged(ITaskItem source, ITaskItem destination) in /Users/runner/work/1/s/xamarin-android/src/Xamarin.Android.Build.Tasks/Tasks/LinkAssembliesNoShrink.cs:line 161

at Xamarin.Android.Tasks.LinkAssembliesNoShrink.RunTask() in /Users/runner/work/1/s/xamarin-android/src/Xamarin.Android.Build.Tasks/Tasks/LinkAssembliesNoShrink.cs:line 76

at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 25

FILE : Xamarin.Android.Common.targets

LINE : 1420

.NET
.NET
.NET yazılım çerçevesini temel alan Microsoft Technologies.
9 soru
Visual Studio
Visual Studio
Windows, web ve mobil cihazlar için uygulama oluşturmaya yönelik tümleşik geliştirme araçlarından oluşan microsoft paketleri ailesi.
15 soru
0 yorum Açıklama yok
{count} oy

Yanıtınız

Yanıtlar, soru yazarı tarafından Kabul Edilen Yanıt olarak işaretlenebilir ve bu da kullanıcıların, yanıtın yazarın sorununu çözdüğünü anlamasına yardımcı olur.