gInk icon indicating copy to clipboard operation
gInk copied to clipboard

Crash on Startup: UnhandledException - Could not load file or assembly Microsoft.Ink

Open RuLdaYu opened this issue 4 months ago • 14 comments

错误报告:

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

crash.txt

RuLdaYu avatar Oct 13 '25 10:10 RuLdaYu

tambem estou com o mesmo problema como resolver isso ?

adrianoirines-design avatar Oct 18 '25 15:10 adrianoirines-design

+1

lxr-lixiaorui avatar Oct 20 '25 08:10 lxr-lixiaorui

+1

MisterStrong avatar Oct 22 '25 16:10 MisterStrong

+1

Windows 11 Pro:

Image

Version 1.2.0

mpek avatar Oct 23 '25 15:10 mpek

Hi guys, I also report the issue here I am runing Win11 pro and Glnk verion 1.2.0

Image

andresnino1 avatar Oct 24 '25 10:10 andresnino1

+1

LoadingLXD avatar Oct 25 '25 09:10 LoadingLXD

+1

pigreco avatar Oct 27 '25 15:10 pigreco

+1

bnmg avatar Oct 28 '25 10:10 bnmg

+1

danjuggles avatar Oct 29 '25 12:10 danjuggles

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

danjuggles avatar Oct 29 '25 13:10 danjuggles

+1

Felina-Lain avatar Nov 04 '25 22:11 Felina-Lain

same problem.

cboosalis avatar Nov 09 '25 07:11 cboosalis

+1

andrearicci avatar Nov 18 '25 12:11 andrearicci

same

lyusergej avatar Nov 20 '25 14:11 lyusergej

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

RuLdaYu avatar Jan 10 '26 13:01 RuLdaYu

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!!

RuLdaYu avatar Jan 10 '26 14:01 RuLdaYu