Comments (9)
@Taritsyn Thank you. The above two suggestions worked great and I am able to resolve those errors. Once again thank you for actively supporting us!!
from javascriptengineswitcher.
Hello!
Try to re-read the “Registration of JS engines” section of documentation.
from javascriptengineswitcher.
Thanks @Taritsyn . All those registrations are already in place in my web application. Is there any breaking changes from 3.1.0 to 3.21.0?
from javascriptengineswitcher.
Is there any breaking changes from 3.1.0 to 3.21.0?
No.
It's possible that you need to read this.
from javascriptengineswitcher.
JavaScriptEngineSwitcher.Core.JsEngineNotFoundException: Could not find a factory, that creates an instance of the JavaScript engine with name
ChakraCoreJsEngine
.
This error message means that JS engine has not been registered. Check your the Global.asax.cs
file there should be the following line of code:
JsEngineSwitcherConfig.Configure(JsEngineSwitcher.Current);
from javascriptengineswitcher.
JsEngineSwitcher
I do have the below code in my Global.asax.cs
public override void Application_Start(object sender, EventArgs e)
{
IdentityModelEventSource.ShowPII = true;
JsEngineSwitcherConfig.Configure((JsEngineSwitcher)JsEngineSwitcher.Current);
}
from javascriptengineswitcher.
JsEngineSwitcherConfig.Configure((JsEngineSwitcher)JsEngineSwitcher.Current);
Why are you doing a type conversion? It seems that you have incorrectly migrated from version 2.X to 3.X (see the “How to upgrade applications to version 3.X” section of documentation).
from javascriptengineswitcher.
I am working with @yeshwanth-t. We have 2 workstations already running using the typecasting above. Without the typecast, we receive this error:
cannot convert from 'JavaScriptEngineSwitcher.Core.IJsEngineSwitcher' to 'JavaScriptEngineSwitcher.Core.JsEngineSwitcher'
from javascriptengineswitcher.
@B-Ahdoot, As far as I understand, you control contents of the App_Start/JsEngineSwitcherConfig.cs
file yourself. Just change argument type of the Configure
method to the IJsEngineSwitcher
and you won't need type conversion.
To avoid the error described by @yeshwanth-t, you need to ensure that the JsEngineSwitcherConfig.Configure
method is called before calling the BundleConfig.RegisterBundles
method. As an example, you can look at the BundleTransformer.Sample.AspNet45.Mvc4 demo project (pay special attention to the App_Start/JsEngineSwitcherConfig.cs
and Global.asax.cs
files).
from javascriptengineswitcher.
Related Issues (20)
- Node Stream HOT 2
- Could not load file or assembly 'file:///D:\home\site\wwwroot\bin\ClearScriptV8.win-x64.dll' or one of its dependencies. Could not find or load a specific file. HOT 10
- Resources should conform to correct ICU standard for naming HOT 4
- Jering.Javascript.NodeJS JsCompilationException on spawn identifier HOT 1
- load modules HOT 2
- Request to support Deno HOT 8
- Any way to debug js or capture console output? HOT 3
- ValidationHelpers.CheckNameFormat preventing nested property access HOT 1
- [Q&A] How to pass stdio to nodejs HOT 5
- deprecated? HOT 4
- Issues after updating BundleTransformer packages in ASP.NET MVC project HOT 11
- Checks whether supports a .NET type by Switcher is not appropriate HOT 2
- Concurrency issue when initializing JS engine switcher in startup HOT 4
- Warning NETSDK1187 HOT 2
- ES 6 Support? HOT 5
- How to pass c# objects to JavaScript functions? HOT 2
- RangeError: Internal error. Icu error. HOT 3
- Out of Memory Error HOT 9
- JavascriptEngineSwitcher.ChakraCore can't find JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64 in Docker container HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascriptengineswitcher.