Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

asp.net core angular 2 deployment issue

$
0
0

Hello,

I created a project using the ASP.NET core Angular 2 Starter Application on my Windows 10 pro development machine using Visual Studio 2015 and it works fine running in IIS express.

I am trying to deploy it to IIS on a Windows 2008 r2 server.  I created a Web Deploy Package in VS and ran the install on the 2008 server. I installed node and asp.net core. 

the site gives an error:

Call to Node module failed with error: Error: Cannot find module 'C:\Inetpub\wwwroot\ASPCOREANG2\webpack.config.js'

So I copied over the webpack.config.js and the webpack.config.vendor.js from my Win 10 development machine 

Now the site loads but it does not render correctly like the bootstrap styling is not loading. I have other ASP.net core projects on IIS on the same server that render bootstrap fine but this is the first Angular 2 app on the server.

Any idea what the web deploy package did not install that is causing my site not render correctly?

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>