Code Monkey home page Code Monkey logo

Comments (5)

Taritsyn avatar Taritsyn commented on May 19, 2024

Hello, Anders!

JavaScriptEngineSwitcher.V8.Native.win-x64 => 2.4.10

This version does not exist. Only available version 2.4.2.

Is this the intended behaviour, or should it work with Microsoft Visual C++ 2015 Redistributable?

Native assemblies were compiled by using Visual Studio 2015, therefore they require a Microsoft Visual C++ 2015 Redistributable. It is possible, that in the bin directory remained an old version of the native assemblies. Check a version of the bin/x64/ClearScriptV8-64.dll file (should be version 5.4.9.0).

Also I recommend you to read the “Misconceptions about the JavaScript Engine Switcher version 2.X” discussion.

from javascriptengineswitcher.

saasen avatar saasen commented on May 19, 2024

Hi Andrey!

I'm sorry for that. My NuGet Package Manager showed the wrong version. Indeed, you are right that the latest package is 2.4.2.

Yes, it seems like the file is the correct version (when building locally):

image

We're building our application on TeamCity. Is it possible that has something to do with it?

I also looked at the server where the application was deployed to, and it seems like it was using the old packages somehow. It was not moved to bin/x64/ClearScriptv8-64.dll, but rather to binClearScriptV8-64.dll and with the old version number 5.4.2.0.

I guess I'll have to look into that. Have you seen this error before?

from javascriptengineswitcher.

Taritsyn avatar Taritsyn commented on May 19, 2024

I also looked at the server where the application was deployed to, and it seems like it was using the old packages somehow.

It's not a error, but an old problem with deployment of native assemblies (I've known this problem since days of Classic ASP). Problem is this: process in which the native assemblies were loaded does not allow them to be overwritten. To overwrite the native assemblies need to restart the process. Most often this process is IIS (need to stop/start the website).

It was not moved to bin/x64/ClearScriptv8-64.dll, but rather to bin/ClearScriptV8-64.dll and with the old version number 5.4.2.0.

Most likely the problem in your deployment script.

I recommend you to read the “File lock on LibSassHost.Native-64.dll” discussion.

from javascriptengineswitcher.

saasen avatar saasen commented on May 19, 2024

You know what. I had indeed a problem in my deployment script. It was picking the wrong package from my feed. It is now working correctly, and indeed we need the vcredist2015 package.

Thanks.

from javascriptengineswitcher.

Taritsyn avatar Taritsyn commented on May 19, 2024

Excellent!

from javascriptengineswitcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.