-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application goes to "No symbol loaded" mode and pops up an exception when stop running application #72241
Comments
Tagging subscribers to this area: @dotnet/area-microsoft-win32 Issue DetailsDescriptionSystem.TypeLoadException Reproduction Steps
Expected behaviorStop application normally Actual behaviorApplication goes to "No symbol loaded" mode and pops up an exception Regression?Yes, it is a regression issue, cannot repro in .Net 7.0.100-preview.7.22357.5 Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
Moving to interop as nothing changed here. |
This is because of the breaking change in the marshaller shapes introduced between Preview 7 and RC1. The solution is to stay within the same version of the SDK and implementation. If using RC1, then RC1 of WinForms should be used - mixing Preview 7 and RC1 will result in the above issues. @jkoritzinsky or @elinor-fung may have another mitigation but this is a known break. See #70859 for the API changes. |
Closing this as it will be sorted once WindowsDesktop moves onto RC1. |
Description
System.TypeLoadException
HResult=0x80131522
Message=Could not load type 'System.Runtime.InteropServices.Marshalling.AnsiStringMarshaller' from assembly 'Microsoft.Win32.SystemEvents, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' due to value type mismatch.
Source=Microsoft.Win32.SystemEvents
StackTrace:
at Interop.Kernel32.GetProcAddress(IntPtr hModule, String lpProcName)
at Microsoft.Win32.SystemEvents.get_DefWndProc()
at Microsoft.Win32.SystemEvents.Dispose()
at Microsoft.Win32.SystemEvents.WindowThreadProc()
Reproduction Steps
Expected behavior
Stop application normally
Actual behavior
Application goes to "No symbol loaded" mode and pops up an exception
Regression?
Yes, it is a regression issue, cannot repro in .Net 7.0.100-preview.7.22357.5
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: