question

JR7769-5160 avatar image
0 Votes"
JR7769-5160 asked JessieZhang-2116 commented

Issues loading DTO assembly when booting Xamarin forms app

I am getting the following error when running my xamarin forms app. I have cleaned, rebuilt, deleted obj/bin folders and restarted visual studio without any success. I have also tried removing the apps from the android device without any success.

System.TypeLoadException: 'Could not load type of field 'MoltenCore.Mobile.UI.ViewModels.CommentsViewModel:<Data>k__BackingField' (1) due to: Could not resolve type with token 010000e8 from typeref (expected class 'MoltenCore.Data.DTO.EntityComment' in assembly 'MoltenCore.Data.DTO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:MoltenCore.Data.DTO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:MoltenCore.Data.DTO.EntityComment member:(null)'

this is a perfectly valid assembly and had been working fine for months until today.

Any ideas?

dotnet-xamarinforms
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

this is a perfectly valid assembly and had been working fine for months until today.

Hi @JR7080-3337 ,did you make any changes before this problem occurred again? You can first try to restart your PC first.

0 Votes 0 ·
JR7769-5160 avatar image JR7769-5160 JessieZhang-2116 ·

I have restarted. Still the same, I think I added the class it is talking about prior to this happening.

0 Votes 0 ·

If i remove that class from the project it builds and runs again just fine?

0 Votes 0 ·

Which class did you remove from your project?

0 Votes 0 ·

0 Answers