Failed to load type from assembly in Mono

I run a pre-built application using Mono, and it works with the DLL in the same directory ( mysql.data.dll ). When I run the application with Mono, I get this error:

 Could not load type 'Snowlight.Storage.SqlDatabaseClient' from assembly 'Snowlight, Version=0.1.0.35857, Culture=neutral, PublicKeyToken=null'. at System.Collections.Generic.Dictionary`2[System.Int32,Snowlight.Storage.SqlDatabaseClient].Init (Int32 capacity, IEqualityComparer`1 hcp) [0x00000] in <filename unknown>:0 at System.Collections.Generic.Dictionary`2[System.Int32,Snowlight.Storage.SqlDatabaseClient]..ctor () [0x00000] in <filename unknown>:0 at Snowlight.Storage.SqlDatabaseManager.Initialize () [0x00000] in <filename unknown>:0 at Snowlight.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 

Judging by the <filename unknown> , I assume this is because the required DLL was not found, so how can I make the application recognize it and use it?

+6
source share
1 answer

Try to launch it from the terminal:

 export MONO_LOG_LEVEL=debug export MONO_LOG_MASK=asm mono --debug yourapp.exe 

Now each search in the assembly will be printed to the terminal, so that you can find out what to look for there.

+16
source

Source: https://habr.com/ru/post/917304/


All Articles