C
C#•4w ago
Nicolas

[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
Nicolas
NicolasOP•4w ago
We have confirmed that the Windows security update KB5063878 is the culprit.
reflectronic
reflectronic•4w ago
@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:"
GrabYourPitchforks
GrabYourPitchforks•4w ago
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 😉
reflectronic
reflectronic•4w ago
sorry to bother you!
GrabYourPitchforks
GrabYourPitchforks•4w ago
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.
tannergooding
tannergooding•4w ago
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

Did you find this page helpful?