System.NotSupportedException: The given path's format is not supported

Dan Taxbøl 25 Reputation points
2024-10-10T06:08:54.01+00:00

I have a project that has been building and publishing successfully. However, after attempting to solve the iOS 18 white screen issue, a new error has started to appear, and I am unsure where to look to fix it.

The following changes have been made since it was last working:

Implemented Windows long path support: Link

Updated to .NET SDK version 8.0.402

Upgraded workload to version 8.0.402.1

Upgraded Visual Studio to version 17.11.5

Applied solutions from this issue: Link

Any guidance on where to look for the cause of this error would be appreciated. Thanks!

System.NotSupportedException: The given path's format is not supported.
   at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at Xamarin.MacDev.CompressionHelper.TryDecompressUsingSystemIOCompression(TaskLoggingHelper log, String zip, String resource, String decompressionDir) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Decompress.cs:line 205
   at Xamarin.MacDev.CompressionHelper.TryDecompress(TaskLoggingHelper log, String zip, String resource, String decompressionDir, List`1 createdFiles, String& decompressedResource) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Decompress.cs:line 104
   at Xamarin.MacDev.Tasks.Unzip.ExecuteLocally() in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/Unzip.cs:line 76
   at Xamarin.MacDev.Tasks.Unzip.Execute() in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/Unzip.cs:line 53
   at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,595 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,581 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dan Taxbøl 25 Reputation points
    2024-10-31T13:51:37.3+00:00

    Hi @JasonPan - MSFT ;

    Thank you for your response! I gave me many hints where to look.

    For anyone else looking for a decisive solution to this issue, unfortunately, I don't have one.

    My main focus is on solving business-related issues for customers, rather than dealing with app malfunctions on iOS18, only to suddenly realize the lack of detailed knowledge and the frustratingly vague error messages.

    It's working now, but I can't say exactly what solved it, as I:

    • Reinstalled Visual Studio
    • Migrated the existing project into a new .NET 8 template project.
    • Recreates new Team Key, Certificate, and Profile.
    • Reinstalled macOS and Xcode.

    I completed these steps in this order, and now it’s working.

    Overall, MAUI Blazor is great when it works but incredibly challenging to debug on iOS, without a ton of knowledge. Not surprising interfacing with the Apple world, but hopefully, this improves in the future.

    Thanks for your help, as always, in this forum!

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.