Skip to content

Xamarin.PreBuilt.iOS[42280:31645665] Could not resolve assembly System.Private.DataContractSerialization.resources, Version=7.0.0.0, Culture=zh-CN, PublicKeyToken=null. Details: Could not load file or assembly  #17189

@Jockeyvb

Description

@Jockeyvb

Description

vs 2022 17.7.3 build to iphone 12 ios,version:15.3

build ok

runing error:
Thread started: #2
Thread started: .NET Timer #3
Thread started: #4
2023-09-03 20:12:32.341 Xamarin.PreBuilt.iOS[42484:31653467] App path /var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/CNDoctorAPP.dll

2023-09-03 20:12:32.340 Xamarin.PreBuilt.iOS[42484:31653467] Content folder: /var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content

Thread started: .NET ThreadPool Gate #5
Thread started: #6
2023-09-03 20:12:32.384 Xamarin.PreBuilt.iOS[42484:31653467] AppDelegate name: AppDelegate

Resolved pending breakpoint for 'CNDoctorAPP.Program.Main(System.String[])' to F:\Project\Program\CNDoctor\CNDoctorAPP\Platforms\iOS\Program.cs:10 [0x00000].
2023-09-03 20:12:32.917 Xamarin.PreBuilt.iOS[42484:31653467] Could not resolve assembly Microsoft.VisualStudio.DesignTools.TapContract, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/Microsoft.VisualStudio.DesignTools.TapContract.dll' or one of its dependencies.

2023-09-03 20:12:32.923 Xamarin.PreBuilt.iOS[42484:31653467] Could not resolve assembly Xamarin.HotReload.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/Xamarin.HotReload.Contracts.dll' or one of its dependencies.

Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:423 [0x00000].
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:418 [0x00000].
2023-09-03 20:12:33.052 Xamarin.PreBuilt.iOS[42484:31653467] Could not resolve assembly Xamarin.HotReload.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/Xamarin.HotReload.Contracts.dll' or one of its dependencies.

2023-09-03 20:12:33.055 Xamarin.PreBuilt.iOS[42484:31653467] Could not resolve assembly Microsoft.VisualStudio.DesignTools.TapContract, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/Microsoft.VisualStudio.DesignTools.TapContract.dll' or one of its dependencies.

Thread started: #7
Thread started: #8
Thread started: #9
[0:] An error occurred: 'Operation not permitted'. Callstack: ''
2023-09-03 20:12:33.216 Xamarin.PreBuilt.iOS[42484:31653467] Could not resolve assembly System.Private.DataContractSerialization.resources, Version=7.0.0.0, Culture=zh, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/System.Private.DataContractSerialization.resources.dll' or one of its dependencies.

2023-09-03 20:12:33.214 Xamarin.PreBuilt.iOS[42484:31653467] Could not resolve assembly System.Private.DataContractSerialization.resources, Version=7.0.0.0, Culture=zh-Hans, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/System.Private.DataContractSerialization.resources.dll' or one of its dependencies.

2023-09-03 20:12:33.213 Xamarin.PreBuilt.iOS[42484:31653467] Could not resolve assembly System.Private.DataContractSerialization.resources, Version=7.0.0.0, Culture=zh-CN, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/0F9B88A5-5356-4792-9914-A1266733CFE6/Documents/CNDoctorAPP.content/System.Private.DataContractSerialization.resources.dll' or one of its dependencies.

应用已终止。

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

7.0.92

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

ios 15.3 win11

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingplatform/iospotential-regressionThis issue described a possible regression on a currently supported version., verification pendings/move-to-vs-feedbackTells automation to ask the person to use VS Feedback to report the issuet/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions