[Microsoft.StylusInput] Deployed software is suddenly not working anymore after a Windows update
After 8 years without any issues, we just got many reports that an exception is now triggered, related to .NET's Code Access Security. Is there a way to avoid this without resuscitating and modifying this old project? And how to know what recent change triggered this issue?
System.MethodAccessException: Attempt by security transparent method 'Microsoft.StylusInput.ComObjectCreator.CreateInstanceLicense(System.Guid, System.Guid, System.String)' to call native code through method 'Microsoft.Ink.UnsafeNativeMethods.CoGetClassObject(System.Guid ByRef, UInt32, IntPtr, System.Guid ByRef)' failed. Methods must be security critical or security safe-critical to call native code.
at Microsoft.StylusInput.ComObjectCreator.CreateInstanceLicense(Guid clsid, Guid iid, String licenseKey)
at Microsoft.StylusInput.DynamicRenderer..ctor(Boolean isControl, IntPtr handle)
at Microsoft.StylusInput.DynamicRenderer..ctor(Control control)
6 Replies
We have confirmed that the Windows security update KB5063878 is the culprit.
@GrabYourPitchforks sorry, this might not quite be your area, would you know how to route this?
sorry, I see .NET Framework, I see CAS, I know "time to ruin Levi's day :awesome:"
I do not have access to corp email / IM. But what you'd want to do is ping one of the employees who's still on active status and ask them to route this to heathar / markmil / tarao. They'll know what to do.
^^ @Tanner Gooding might be a willing victim 😉
sorry to bother you!
No problem!
I'm not allowing myself to do any work at the moment, but I'll still try to route to the best of my ability.
looks like a dupe of https://developercommunity.visualstudio.com/t/SecurityException-in-MicrosoftInkInkOv/10958778
so I'd just report it here as well and let it be a +1
there's a listed workaround as well