New Comment on "Documentation"
it seems not working well while the project builded as Any CPU?
View ArticleNew Post: Could not load file or assembly 'Noesis.Javascript.dll' or one of...
I had these two files in my %system32% directory, and I still got the error listed above. The problem ended up being that I was running on x64 and I didn't compile the console app I was building as...
View ArticleNew Post: Adding Other Libraries to Context
I am sure I am missing something easy, but how would you add a library, say Underscore.JS, to the context so that your script would have access to the functions and objects within that library? I have...
View ArticleNew Post: Adding Other Libraries to Context
I would think you could load the entire source code into a string and then invoke Run() with the string. It would leave itself behind by way of global variables available to subsequent calls to Run().
View ArticleNew Post: Noesis - Signed 32 Bit Assembly - Solution
I noticed the 32 bit assembly released was unsigned while the 64 bit was signed. I believe this is because of this bug in visual studio I had to make this hack in order for it to work and sign the 32...
View ArticleNew Post: Could not load file or assembly 'Noesis.Javascript.dll' or one of...
If you don't want to put those DLLs in SYS32 on the server for whatever reason (ours was for massive deployment) you can use the following modification in your Global.asax, and then put your unmanaged...
View ArticleNew Post: new JavascriptContext() - An attempt to divide by zero
Hi all! Sorry for my english. I have a problem with integration of libraries Padeg.dll (Library decline on cases of russian names) and Noesis.Javascript.dll. I can't understand why these libraries...
View ArticleNew Post: new JavascriptContext() - An attempt to divide by zero
If your 'script' is not setting 'result' then you are calling ToString() on null. However I cannot see how this would become divide by zero. The only other way I have known DLLs to influence each other...
View ArticleReviewed: Javascript .NET v0.7 (avr. 13, 2014)
Rated 5 Stars (out of 5) - Very easy to use. A very good job. Thanks
View ArticleCommented Issue: Optional Method Parameters [11497]
It appears that optional method parameters are not supported properly on objects added to the context. Consider the code below:...public void log(String what, String color = null) {}...Calling that...
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
Environment:Windows Server 2008 R2 SP1 x64, patched up..NET 4.0, patched up.Long-Running ASP.NET Web App "Daemons" in IIS 7.5* Basically, long-running apps without the suck of Windows Service...
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
Your code looks OK to me. I have not seen anything like this, and I must admit I have run into problems using the latest v8, but only when running the same source code multiple times without...
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
I guess our error logging must not be handling the error gracefully enough, because all I'm seeing is the above exception. I see now that JavascriptException can contain source/line/column information....
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
It should also include the Message property, describing a Syntax error, or whatever.
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
Unfortunately, even after adding all of the information exposed by JavascriptException to our logs, we get no information (all properties are null/empty). We finally had this error show up on one of...
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
I can randomly reproduce this problem with this code: static void Main(string[] args) { string script = "function test(a,b){return a+b;} test('abc','def');"; try { using (JavascriptContext context =...
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
Are you saying that if you run the same .exe from the command line then mostly it runs correctly and sometimes it doesn't? This is very odd because there ought to be no difference between executions of...
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
Yes: running the same exe sometimes work, sometimes not:c:\Users\paolo.TERADP\Documents\Visual Studio 2013\Projects\ConsoleApplication 6\ConsoleApplication6\bin\x64\Debug>ConsoleApplication6.exe...
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
I built the source code from git (I had to change the vs version in the bat file to use the VS20013 compiler for v8) and now the application does not crash). Thanks for your help! ;)
View ArticleNew Post: Mysterious Script Compile Failure after period of long running...
@sakya, I think you were experiencing something completely different than us. Updating on my problem, I think now that I've found the culprit. Things are looking good, but I'm not at 100% confidence...
View Article