Skip to content

Could not load file or assembly 'ClearScriptV8-64.DLL' #504

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

Closed
jameskraus opened this issue Feb 1, 2018 · 8 comments
Closed

Could not load file or assembly 'ClearScriptV8-64.DLL' #504

jameskraus opened this issue Feb 1, 2018 · 8 comments

Comments

@jameskraus
Copy link

After following the directions on the ReactJS.NET site, I've been unable to get this to work. I've referenced a few threads here (e.g. #409), but wasn't able to resolve the issue.

Here's the error:
image

ClearScriptV8-64.dll is in the bin directory of the site.

FWIW, here's Dependecy walker's view of ClearScriptV8-64.dll:
image

Any ideas what is wrong here?

@dustinsoftware
Copy link
Member

dustinsoftware commented Feb 2, 2018 via email

@jameskraus
Copy link
Author

jameskraus commented Feb 2, 2018 via email

@Taritsyn
Copy link
Contributor

Taritsyn commented Feb 2, 2018

Hello, James!

What version of the JavaScriptEngineSwitcher.V8 are you using?
In which of subdirectories of bin directory is located the ClearScriptV8-64.dll file?

@jameskraus
Copy link
Author

jameskraus commented Feb 2, 2018

Hey Taritsyn,

Well thanks for the questions about the subdirectory. I found that placing the ClearScriptV8-64.dll & v8-64.dll in a x64 subdirectory got rid of the error and brought my React component to life! (Originally I had them in the root /bin directory).

It seems I misunderstood this part of your misconceptions post:

In this case, native assemblies are located in the x86 and x64 subdirectories of bin[Debug|Release] directory (for web applications and sites just the bin directory).

Thank you!

For the record, I'm using these versions of everything:
image

@Taritsyn
Copy link
Contributor

Taritsyn commented Feb 2, 2018

… (Originally I had them in the root /bin directory).

Why do it manually, if the JavaScriptEngineSwitcher.V8.Native.win-x64 package itself copies everything to the right place?

@jameskraus
Copy link
Author

jameskraus commented Feb 2, 2018

It didn't copy everything into the right place for me I guess? I suppose its supposed to copy to /bin/x64, but I found the DLLs in the root /bin directory by default.

Everything was installed with nuget and we're using msbuild to build our solution. I'm currently trying to figure out how to get the DLLs to show up in the correct place automatically.

I suspect it's an oddity/bug in our build and deployment process. It might not handle subdirectories in /bin well (we didn't have any before ReactJS.NET).

(And yet for some reason, the ru-ru directory comes out fine??)

@Taritsyn
Copy link
Contributor

Taritsyn commented Feb 2, 2018

(And yet for some reason, the ru-ru directory comes out fine??)

It uses a completely different mechanism (lib directory of NuGet package).

Offtopic: Yesterday you were wrong about the “mebibytes -> megabytes”. I recommend you to see the following code.

@jameskraus
Copy link
Author

jameskraus commented Feb 2, 2018

Offtopic: Yesterday you were wrong about the “mebibytes -> megabytes”. I recommend you to see the following code.

Huh, never heard MiB pronounced before. Until now I just assumed it was just a variant of MB. That's what I get for not google-checking Mebibytes.

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