-
Notifications
You must be signed in to change notification settings - Fork 49
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
Issue running v1.3.3 and v2.4.13 side-by-side #51
Comments
Hello, Mohamed! I recommend you to read “How to upgrade applications to version 2.X” section of the documentation and “Misconceptions about the JavaScript Engine Switcher version 2.X” discussion. |
Hello @Taritsyn, I read all of that and it doesn't help. The problem is that I have nested web applications (parent and child). I am upgrading the child web application with the new version of JavaScriptEngineSwitcher. I installed the VC2015-redist. I got it working as a standalone web app. Since the parent web app has the web.config lines for JsEngineSwitcher, I am thinking that might be the problem. But also, I ran into an issue where if I install VC2015-redist, the old version stops working (v1.1.3 of the jsEngineSwitcher). But if I also install VC2017-redist, it works again. But regardless of that, it appears whichever you load first (the parent or child web apps), the other one will fail with this error:
|
Upgrade both web applications to version 2.X.
Clearly written in the documentation:
|
@Taritsyn, is that the only way? It is not possible for me to update the parent yet, and in fact, our application is setup with one parent and over 20 children. I was hoping to update them one at a time instead of all in one fell swoop as I don't own all of the apps and have to coordinate the update with the teams that own them. |
Check a existance of the |
Yep, it exists. Also the v8-x64.dll exists. |
Version 1.1.3 require the the Visual C++ Redistributable for Visual Studio 2012, but version 2.4.13 the Microsoft Visual C++ 2015 Redistributable. |
I can not advise to you anything, because I do not see the source code of your web applications. Try to reproduce these errors on the demo project, and then send me its source code. |
Thanks! It's possible I am having issues because both parent and child are on the same Application Pool in this case. That is not the case in production, so I will test that configuration and see if that resolves my issue. |
While I can give only one advice: in web applications, that use the older version, leave the JavaScriptEngineSwitcher.V8, but in web applications, that use the new version, install the JavaScriptEngineSwitcher.ChakraCore instead of the JavaScriptEngineSwitcher.V8. When you finish updating of all web applications, you can everywhere return the JavaScriptEngineSwitcher.V8. |
@Taritsyn - my problem is now resolved. It was due to my test environment running all of the apps in the same App Pool. I am interested in ChakraCore, are you recommending that I use ChakraCore instead of V8? I don't mind but would love to hear your rationale for ChakraCore. Thanks |
@Taritsyn - also, it works with VC++ 2017 redist as well. |
At the moment, V8 and ChakraCore engines are very similar in their characteristics, so they can replace each other. The main advantage of the JavaScriptEngineSwitcher.ChakraCore module is cross-platform. |
I have a web application with several child web applications.
All the web applications have v1.1.3 installed.
But if I update to the latest version on one of the child web applications, I get this error:
A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.
It has to do with the native dlls and Visual C++ Redistributable for Visual Studio 2015.
Any help is appreciated.
Thanks
The text was updated successfully, but these errors were encountered: