WpfExtendedToolkit icon indicating copy to clipboard operation
WpfExtendedToolkit copied to clipboard

IntegerUpDown controls throw error XDG0062: Could not load type 'System.Int32?' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e09'

Open sonicbhoc opened this issue 4 years ago • 10 comments

Each IntegerUpDown control I use has this error for the FormatString, Value, Increment, and Maximum elements.

The errors started with I transitioned a project from the old csproj format to the SDK-style format. The project is only targeting .NET Framework 4.7.2 (net472). It compiles fine, but the designer keeps throwing up exceptions.

sonicbhoc avatar Sep 03 '21 02:09 sonicbhoc

Note that the issue only seems to happen with the XAML Designer in VS2019; VS Blend 2019 does not display the same issue. I'm starting to think the issue is with the VS2019 XAML Designer, not the package.

sonicbhoc avatar Sep 03 '21 12:09 sonicbhoc

@sonicbhoc, I am having the same problem. It has been suggested that I delete the obj folder, clean the project/solution and rebuild, but that did not solve the issue. Did you find a fix for this?

mdwhalley avatar Dec 07 '21 18:12 mdwhalley

switching to Visual Studio Blend instead of just VS fixed it for me. I haven't tried it again in VS2019 but it seemed to work alright in VS2022.

sonicbhoc avatar Dec 07 '21 18:12 sonicbhoc

Thanks, @sonicbhoc. Tried that but still getting the error. No problem building or running the application, so I might just have to live with it.

mdwhalley avatar Dec 08 '21 10:12 mdwhalley

Did you also delete the hidden .vs folder before starting Blend? Maybe that might help.

On December 8, 2021, Github Notifications @.***> wrote:

Thanks, @sonicbhoc https://github.com/sonicbhoc. Tried that but still getting the error. No problem building or running the application, so I might just have to live with it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/dotnetprojects/WpfExtendedToolkit/issues/28#issuecomment- 988672950>, or unsubscribe <https://github.com/notifications/unsubscribe- auth/AAGJJU5NTHZRB2ESRV2CR7TUP4VDZANCNFSM5DKWSV2A>.

sonicbhoc avatar Dec 08 '21 18:12 sonicbhoc

@sonicbhoc , thanks but no good. The .vs folder is recreated when VS project is loaded and before I start VS Blend (which can only be activated once the VS designer is open in basic VS it seems). I then get the following error when starting the Project: image So I have had to revert to the original .vs folder. This seems to be an error without issue that @Microsoft would need to resolve. By way of post-script, this exception is not thrown by the VS2019 Designer, so it appears to be a bug in VS2022.

mdwhalley avatar Dec 09 '21 10:12 mdwhalley

Has this issue had eyeballs put on it, yet? I am seeing this error in a .NET Framework 4.6.2 project using VS 2022.

jsmcneal avatar Feb 12 '24 13:02 jsmcneal

I'm currently not looking after this, cause I don't use WPF any more. But if you'd create a pull request to fix it, I'll create a new release

jogibear9988 avatar Feb 12 '24 17:02 jogibear9988

Jeffrey

Just to add, I am not getting this error in the VS designer any more. I am on VS 2022 (Version 17.4.4) and .NET Framework 4.8

Mike Whalley

From: Jochen Kühner @.> Sent: Monday, February 12, 2024 5:57 PM To: dotnetprojects/WpfExtendedToolkit @.> Cc: Michael Whalley @.>; Comment @.> Subject: Re: [dotnetprojects/WpfExtendedToolkit] IntegerUpDown controls throw error XDG0062: Could not load type 'System.Int32?' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e09' (#28)

I'm currently not looking after this, cause I don't use WPF any more. But if you'd create a pull request to fix it, I'll create a new release

— Reply to this email directly, view it on GitHub https://github.com/dotnetprojects/WpfExtendedToolkit/issues/28#issuecomment-1939249695 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQMNETZJNRABRB3CVSNPSDTYTJJYDAVCNFSM5DKWSV2KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJTHEZDIOJWHE2Q . You are receiving this because you commented. https://github.com/notifications/beacon/AQMNET3VITZHZ6KAHRNORG3YTJJYDA5CNFSM5DKWSV2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOOOLJUHY.gif Message ID: @.*** @.***> >

mdwhalley avatar Feb 12 '24 18:02 mdwhalley

If most .NET DEV's have moved away from WPF, I don't see much utility into digging into root cause at this time.

This issue is not crashing my app in runtime, but it is crashing the .xaml Designer which is annoying.

Thanks for getting back to me.

Jeffrey McNeal

jsmcneal avatar Feb 13 '24 12:02 jsmcneal