Non-Asp.net App #100

Closed
opened 2025-08-09 17:15:00 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @samcov on 4/14/2018

I had an issue that was closed, and I couldn't reopen it, so I'm creating a new one.

There doesn't appear to be one single working non-asp.net example, and the advice isn't working. It does return the correct result, but in an error, and it appears that it's trapped in some asp.net pipeline.

The simplest solution would be to provide a working example, because I would hate to have to go over the network to do this when I really don't need to.

The info below comes from this issue #1583

@SteveSandersonMS , I get odd results. The add computation actually works, the right value is returned, but it's returned in the catch in the exception message, i.e. ex.Message = 42!

It faults, and the issue is not in the javascript, but in nodeservices, and here is the full exception. Oddly, it looks like it's behaving like an asp,net app in middleware pipline!

at Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.d__71.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.<InvokeExportAsync>d__131.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.d__101.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.<InvokeExportWithPossibleRetryAsync>d__101.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at NodeTestConsole.Program.d__5.MoveNext() in \JavaScriptServices-rel-2.0.0\NodeTestConsole\Program.cs:line 56

*Originally created by @samcov on 4/14/2018* I had an issue that was closed, and I couldn't reopen it, so I'm creating a new one. There doesn't appear to be one single working non-asp.net example, and the advice isn't working. It does return the correct result, but in an error, and it appears that it's trapped in some **asp.net pipeline**. The simplest solution would be to provide a working example, because I would hate to have to go over the network to do this when I really don't need to. The info below comes from this issue [#1583](https://github.com/aspnet/JavaScriptServices/issues/1583) @SteveSandersonMS , I get odd results. The add computation actually works, the right value is returned, but it's returned in the catch in the exception message, i.e. ex.Message = 42! It faults, and the issue is not in the javascript, but in nodeservices, and here is the full exception. Oddly, it looks like it's **behaving like an asp,net app in middleware pipline**! at Microsoft.AspNetCore.NodeServices.HostingModels.**HttpNodeInstance**.<InvokeExportAsync>d__7`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.<InvokeExportAsync>d__13`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.<InvokeExportWithPossibleRetryAsync>d__10`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.<InvokeExportWithPossibleRetryAsync>d__10`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at NodeTestConsole.Program.<Add>d__5.MoveNext() in \JavaScriptServices-rel-2.0.0\NodeTestConsole\Program.cs:line 56
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#100
No description provided.