SourcetrailDotnetIndexer icon indicating copy to clipboard operation
SourcetrailDotnetIndexer copied to clipboard

ReflectionTypeLoadException

Open ricardoisdebugging opened this issue 4 years ago • 1 comments

Error name: Exception indexing assemby 'xxx\SourcetrailDotnetIndexer-main\SourcetrailDotnetIndexer\bin\Debug\test\xxx.dll' System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Hi,

There is another error I met when indexing assembly 截图_20211117092455

The .pdb file is a type of Program Debug Database, 截图_20211117092514

And it shows like this 截图_20211117093121

Do you have any idea about why this exception exists?

Hope to get your help!

ricardoisdebugging avatar Nov 17 '21 01:11 ricardoisdebugging

I don't think, the PDB is the issue here. As the output states, the assembly System.Windows.Forms cannot be found. For assemblies that are part of the .NET Framework (like the mentioned one), you have to specify the path to the Framework-Assemblies using the -s switch, e.g. -s C:\Windows\Microsoft.NET\Framework64\v4.0.30319. (assuming, your app is a x64-bit app, if it's x86, replace Framework64 with Framework in the path) Depending on the Version of the Framework your app is using, the path will be different.

Give it a try, it should work ! ;-)

packdat avatar Nov 17 '21 17:11 packdat