Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReflectionTypeLoadException #9

Open
ricardoisdebugging opened this issue Nov 17, 2021 · 1 comment
Open

ReflectionTypeLoadException #9

ricardoisdebugging opened this issue Nov 17, 2021 · 1 comment

Comments

@ricardoisdebugging
Copy link

ricardoisdebugging commented Nov 17, 2021

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!

@packdat
Copy link
Owner

packdat commented Nov 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants