Cannot run asp.net core, angular 2, server side rendering project in server -
i use "aspnet-spa" generator (http://blog.stevensanderson.com/2016/05/02/angular2-react-knockout-apps-on-aspnet-core/) generate project. run locally success in server iis return error.
unhandled exception occurred while processing request. win32exception: system cannot find file specified startcore > system.componentmodel.win32exception: system cannot find file specified @ system.diagnostics.process.startcore(processstartinfo startinfo) @ system.diagnostics.process.start() @ system.diagnostics.process.start(processstartinfo startinfo) @ microsoft.aspnetcore.nodeservices.outofprocessnodeinstance.<ensureready>d__16.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.nodeservices.httpnodeinstance.<invoke>d__7`1.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.spaservices.prerendering.prerendertaghelper.<processasync>d__28.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.razor.runtime.taghelpers.taghelperrunner.<runasync>d__0.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ aspnetcore._views_home_index_cshtml.<executeasync>d__32.movenext() in /views/home/index.cshtml:line 2 --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.mvc.razor.razorview.<renderpageasync>d__14.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.mvc.razor.razorview.<renderasync>d__13.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.mvc.viewfeatures.viewexecutor.<executeasync>d__18.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.mvc.viewresult.<executeresultasync>d__26.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.mvc.internal.controlleractioninvoker.<invokeresultasync>d__32.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.mvc.internal.controlleractioninvoker.<invokeresultfilterasync>d__31.movenext() --- end of stack trace previous location exception thrown --- @ microsoft.aspnetcore.mvc.internal.controlleractioninvoker.<invokeallresultfiltersasync>d__29.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.mvc.internal.controlleractioninvoker.<invokeresourcefilterasync>d__23.movenext() --- end of stack trace previous location exception thrown --- @ microsoft.aspnetcore.mvc.internal.controlleractioninvoker.<invokeasync>d__18.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.builder.routermiddleware.<invoke>d__4.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.aspnetcore.diagnostics.developerexceptionpagemiddleware.<invoke>d__6.movenext()`enter code here`
i install node.js in server , copy node.exe global folder (website folder in server). , work ok.
thank pawel lot!
Comments
Post a Comment