Closed bbsdddougla closed 6 years ago
OK. Tomorrow I will try to fix.
@Taritsyn Thanks for your quick response! Let me know if there is anything else I can provide to help you troubleshoot.
Just in case, check two things:
ChakraCoreJsEngine
explicitly registered as default engine (see a “Registration of JS engines” section of documentation), because there may be a conflict between the JavaScriptEngineSwitcher.ChakraCore and JavaScriptEngineSwitcher.Msie.ChakraCoreJsEngine
is explicity registered as the default engine. (We had been registering the default engine before adding the engine, but switching the order of those two statements had no effect on the outcome: loading a page with React produces the System.AccessViolationException.)var chakraCoreJsEngineFactory = new ChakraCoreJsEngineFactory();
JsEngineSwitcher.Instance.EngineFactories.Add(chakraCoreJsEngineFactory);
var defaultJsEngineName = ChakraCoreJsEngine.EngineName;
JsEngineSwitcher.Instance.DefaultEngineName = defaultJsEngineName;
We do the registration inside of the configuration method for Reactjs.net in App_Start, and both statements get logged (logging code omitted) so we know they're being called.
After researching the stack trace, I not found problems at .NET code level. It is possible, that cause of error is located at level of the ChakraCore library. Therefore I updated the ChakraCore library from version 1.5.2 to 1.8.1.
I recommend you to upgrade the JavascriptEngineSwitcher.ChakraCore to version 2.4.12.
Ok, thanks for looking at it. I'll upgrade and try again. If that doesn't work, perhaps we'll try a different engine.
If that doesn't work, perhaps we'll try a different.
This error can also be caused by an antivirus or a lack of memory.
I've upgraded to 2.4.12 and it appears to run fine on server 2016. Thanks for your help!
Excellent!
I faced with same problem on Server 2012. I fixed with enabling 32 bit application on app pool.
We're using ReactJs.Net on top of JavascriptEngineSwitcher.ChakraCore. Everything works ok on our Win10 dev boxes and our Server 2012r2 CI. However, when deploying to server 2016 we get this error whenever we try to load a view which uses ReactJs.Net on it:
We're Running on .Net Framework 4.7.1