Skip to content

[dotnet-sdk-10.0.100-preview.6.25314.101] Artemis shows an exception popup: System.InvalidOperationException: A value of type 'System.String' cannot be converted to a 'System.Guid'. #116730

@Junjun-zhao

Description

@Junjun-zhao
Member

Description

When we run the third-party applications with the latest .NET 10 build, an exception popup with error: System.InvalidOperationException: A value of type 'System.String' cannot be converted to a 'System.Guid' after clicking the button.

Reproduction Steps

App Repro Steps in Repro machine:

Please refer to the repro machine from DevDiv bug
Update the runtime in C:\Users\test01\Desktop\App\Artemis\Artemis.UI.Windows.runtimeconfig to run against dotnet-sdk-10.0.100-preview.6.25314.101, before launching the app.

"framework": {
      "name": "Microsoft.NETCore.App",
      "version": "10.0.0-preview.6.25314.101"
    }

1.Launch “C:\Users\test01\Desktop\App\Artemis\Artemis.UI.Windows.exe”.
2.Click “Library”.
3.Click “Delete”.
4.Click “Confirm” button.

Expected behavior

Delete successfully

Actual behavior

Popup window with error:

System.InvalidOperationException: A value of type 'System.String' cannot be converted to a 'System.Guid'.
   at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_NodeUnableToConvert(Type sourceType, Type destinationType)
   at System.Text.Json.Nodes.JsonValue`1.GetValue[T]()
   at Artemis.WebClient.Workshop.Models.InstalledEntry.TryGetMetadata[T](String key, T& value) in C:\Users\AppCompat\Desktop\Publish App\AppSource\Artemis\src\Artemis.WebClient.Workshop\Models\InstalledEntry.cs:line 91
   at Artemis.WebClient.Workshop.Handlers.InstallationHandlers.ProfileEntryInstallationHandler.UninstallAsync(InstalledEntry installedEntry, CancellationToken cancellationToken) in C:\Users\AppCompat\Desktop\Publish App\AppSource\Artemis\src\Artemis.WebClient.Workshop\Handlers\InstallationHandlers\Implementations\ProfileEntryInstallationHandler.cs:line 69
   at Artemis.UI.Screens.Workshop.Library.Tabs.InstalledTabItemViewModel.ExecuteUninstall(CancellationToken cancellationToken) in C:\Users\AppCompat\Desktop\Publish App\AppSource\Artemis\src\Artemis.UI\Screens\Workshop\Library\Tabs\InstalledTabItemViewModel.cs:line 82
   at ReactiveUI.ObservableMixins.<>c__DisplayClass1_1.<<FromAsyncWithAllNotifications>b__1>d.MoveNext() in /_/src/ReactiveUI/Mixins/ObservableMixins.cs:line 42

Image

Regression?

Yes

Verify Scenarios:
1). Windows 10 21H2 AMD64 + dotnet-sdk-8.0.400: Pass
2). Windows 10 21H2 AMD64 + dotnet-sdk-10.0.100-preview.5.25277.114: Pass
3). Windows 10 21H2 AMD64 + dotnet-sdk-10.0.100-preview.6.25309.101: Pass
4). Windows 10 21H2 AMD64 + dotnet-sdk-10.0.100-preview.6.25314.101: Fail

Known Workarounds

No response

Configuration

Application Name: Artemis
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-preview.6.25314.101
App Source & repro machine checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2507291
Github Link:
https://github.com/Artemis-RGB/Artemis

Other information

@dotnet-actwx-bot @dotnet/compat

Activity

added
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
on Jun 17, 2025
dotnet-policy-service

dotnet-policy-service commented on Jun 17, 2025

@dotnet-policy-service
Contributor

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

added this to the 10.0.0 milestone on Jun 17, 2025
removed
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
on Jun 17, 2025
Junjun-zhao

Junjun-zhao commented on Jun 25, 2025

@Junjun-zhao
MemberAuthor

Hi @PranavSenthilnathan , thanks for the quick fix. Could you please help confirm whether this is a blocker .NET 10 Preview 6, and the fix will be merged into .NET 10 Preview6?

PranavSenthilnathan

PranavSenthilnathan commented on Jun 25, 2025

@PranavSenthilnathan
Member

This is not a blocker and preview 6 will not have the fix. We are targeting preview 7 for the fix.

Junjun-zhao

Junjun-zhao commented on Jun 26, 2025

@Junjun-zhao
MemberAuthor

@PranavSenthilnathan Thank you for your quickly confirmation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

    Participants

    @eiriktsarpalis@jkotas@jeffschwMSFT@PranavSenthilnathan@Junjun-zhao

    Issue actions

      [dotnet-sdk-10.0.100-preview.6.25314.101] Artemis shows an exception popup: System.InvalidOperationException: A value of type 'System.String' cannot be converted to a 'System.Guid'. · Issue #116730 · dotnet/runtime