I am having an issue deploying an ASP.NET Core app with Angular2 to IIS.
Steps so far -
- Created a starter Angular2 asp.net core project with aspnetcore-spa generator following this
- Played around with some angular code and was able to debug in VS2015 as well as command line. At this point the code is running
- Got IIS setup following this
- Using VS2015 published to a folder. Created a new IIS app and pointed to that folder.
- Point the browser and get an error
An error occurred while processing your request.
Log file shows
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0] An unhandled exception has occurred: Call to Node module failed with error: To use prerendering, you must install the 'aspnet-prerendering' NPM package. System.Exception: Call to Node module failed with error: To use prerendering, you must install the 'aspnet-prerendering' NPM package.
The node_module folder with aspnet-prerendering is in the output folder.
One last thing to test that IIS is working, I created a basic project from VS template for .NET core and was able to get IIS working for a basic application. No npm dependencies.
Thanks for any direction on this.