Crash on Startup: UnhandledException - Could not load file or assembly Microsoft.Ink
错误报告:
UnhandledException
Oops, gInk crashed! Please include the following information if you plan to contact the developers:
未能加载文件或程序集“Microsoft.Ink, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。生成此程序集的运行时比当前加载的运行时新,无法加载此程序集。
Stack Trace:
在 gInk.Root..ctor()
在 gInk.Program.Main() 位置 H:\Codes\gInk\src\Program.cs:行号 32
tambem estou com o mesmo problema como resolver isso ?
+1
+1
+1
Windows 11 Pro:
Version 1.2.0
Hi guys, I also report the issue here I am runing Win11 pro and Glnk verion 1.2.0
+1
+1
+1
+1
I am using v1.1.1
I created a gInk.exe.config file in the project directory and added this to it:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="false">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
Which did get around the issue, however it just gave me a different one which I haven't been able to resolve:
Oops, gInk crashed! Please include the following information if you plan to contact the developers:
Attempt by security transparent method 'Microsoft.Ink.DrawingAttributes.set_Color(System.Drawing.Color)' to call native code through method 'Microsoft.Ink.IInkDrawingAttributes.set_Color(Int32)' failed. Methods must be security critical or security safe-critical to call native code.
Stack Trace:
at gInk.Root.SetDefaultPens() in H:\Codes\gInk\src\Root.cs:line 374
at gInk.Root..ctor() in H:\Codes\gInk\src\Root.cs:line 135
at gInk.Program.Main() in H:\Codes\gInk\src\Program.cs:line 32
+1
same problem.
+1
same
Now, I use pplnk as substitute which had handdled this crash and also is free of charge. just take it easy, and say goodbyd. see ppInk
Guys, I find a way to solve this crash in here. Excerpt: Important Notice: regression introduced in windows 24H2 update(August 2025)
Anyway, you can run this .bat code in where gInk.exe is located.
install_microsoft_ink_dll.bat.txt
IMPORTANT NOTE:
- Delete .txt suffix is in need.
- This .bat code should run with administrator, and will change your windows system file.
- You can ask deepseek or chatGPT to learn more.
- Take it carefully! Thought I have handdled crash by this way, any crash later may have NOT assistant!!