Closed zd-dalibor closed 3 years ago
Please refer to this issue: https://github.com/agracio/edge-js/issues/17. Edge.js does not work on IIS except IIS Express, so if it works for you at all could you update the above issue with your IIS config, pool config, permissions, OS, etc... to help people run it on IIS.
AccessViolationEception issue was introduced into original Edge.js repo as part of major code changes in May 2017. edge-js
includes this PR: https://github.com/tjanczuk/edge/pull/573 that suppose to fix the exception, but it appears to work only in non-IIS scenarios.
@agracio I am using EdgeJs 9.3.4 from your repo on .net 4.6.1. Edge.js 8.2.1 from 'tjanczuk/edge' does not work at all.
9.3.4 works but crashing on app reloading as I mentioned before.
There is nothing special in my configuration.
I am loading js function in my asp mvc application as static property with Edge.Func(@"return require('./../../prerender.js')");
. So if I modify prerender.js file I must restart my application.
If I try to call Edge.Func()
multiple times I got errors that some nodejs modules are already loaded.
How about OS and IIS pool configuration? Is IIS pool just a default one?
@agracio I don't known what azure doing behind webapp service. I only know that IIS is on the top but how azure is configuring IIS I don't konw, You can host ASP.NET apps and for nodjs, php and net.core IIS is only a proxy. The only thing I can configure are things in Web.config in my application.
On my local machine I'm using IIS Express in combination with VS2017
What about web.config, what kind of configuration you have there?
@agracio What currently I can conclude is that Edge.Func()
start V8 thread in behind. Is there some way that I can kill that thread manually?
I think that w3wp.exe process does not restart itself on asp.net application reloading so V8 thread is not terminated like it is in desktop applications (the same is with IIS Express).
If there is some method for terminating V8 thread manually I can call it on asp application restart event.
@agracio web.config
Thanks, Ill see if this resolves an issue on local IIS and if it does then what setting is responsible.
Could you also share you IISRewriteRules.config
file
@agracio IISRewriteRules.config
I switch my application from this repo to aspnet/JavaScriptServices. So far so good.
@agracio I just wanted to thank you for releasing the fix early. My edgejs modules would fail in a unit test and this fork fixed my problems. Can you point to a thread where information on the resolving of these changes will be displayed? (In the original edge.sj repo)
Issue fixed in https://github.com/agracio/edge-js/pull/119, please update to newest nuget package.
Whenever I upload new version of my application on application reloading I got this error:
After that w3wp process restart itself and everything works again.
The same problem I have with IISExpress during development. The same error kills my IISExpress process on every new build.