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

IQueryableObjectSource not found exception #30

Closed
otryshko opened this issue Mar 13, 2024 · 10 comments
Closed

IQueryableObjectSource not found exception #30

otryshko opened this issue Mar 13, 2024 · 10 comments

Comments

@otryshko
Copy link

image

@ErikEJ
Copy link
Contributor

ErikEJ commented Mar 13, 2024

Do you have VS 17.9?

@Giorgi
Copy link
Owner

Giorgi commented Mar 13, 2024

The IQueryableObjectSource.dll is included in the VSIX and should be available in the following folder:

C:\Users\voffka\AppData\Local\Microsoft\VisualStudio\17.0_e12c492d\Extensions\5kiuggqj.gub\netcoreapp

Can you check if it's there?

@otryshko
Copy link
Author

Yes, 17.9.1.

Yes, the file is in the folder which is on screenshot so I'm not sure what is going on. When I look at the dll with dotPeek, it seems that one reference does not work, but it could be a false positive

image

@Giorgi
Copy link
Owner

Giorgi commented Mar 13, 2024

Can you run Procmon and see if the DLL is accessed or not?

@Giorgi
Copy link
Owner

Giorgi commented Mar 13, 2024

This is what I get when I run the visualizer:

image

@otryshko
Copy link
Author

otryshko commented Mar 15, 2024

No, procmon doesn't capture any attempts to load IQueryableObjectSource

FWIW, getting "System.MissingMethodException thrown when loading the VisualizerAssemblyLoadContext. Message: Cannot dynamically create an instance of type 'Microsoft.VisualStudio.NetCoreAssemblyResolution.VisualizerAssemblyLoadContext'. Reason: No parameterless constructor defined." in the debugger output

Also this VS Community Edition running as an admin

@Giorgi
Copy link
Owner

Giorgi commented Mar 15, 2024

@otryshko I have no idea why VS doesn't load the IQueryableObjectSource.dll but the error message you see is the same as the one in #28.

Can you post your steps to reproduce at https://developercommunity.visualstudio.com/t/SystemMissingMethodException-thrown-whe/10612094 ?

@ErikEJ
Copy link
Contributor

ErikEJ commented Mar 15, 2024

Can you share a repro project?

@otryshko
Copy link
Author

Figured it out; @Giorgi you were correct that it's related to the access denied to the extension folder (dll/Resources). The project is the asp.net core app running under the IIS AppPool identity. Once I granted the identity account access to the folder, it started to work.

Not sure if it's possible to check for it in advance/show better error message.

@Giorgi
Copy link
Owner

Giorgi commented Mar 15, 2024

Nice to hear that it's working now! I'm also not sure if it's possible to detect that but as the issue is now solved for you I'll close this issue.

@Giorgi Giorgi closed this as completed Mar 15, 2024
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

3 participants