简体   繁体   中英

Issue deploying ASP.net angular application to IIS

I am trying to deploy my application to IIS and everything seems to work however when I go to open up the web site I get the error below in the browser. I tried running it locally on the server its self with dotnet "myapp.dll" and It loads everything accept my client side stuff as seen below it fails on a node process. (So my guess is it has something to do with node not serving my client side?) Any help resolving this issue would be greatly appreciated.

Error in browser

在此处输入图片说明

Error in cmd line when I run dotnet locally on the server its self

在此处输入图片说明

Other info

 I have the "AspNetCoreModule" installed and enabled in IIS
 Both dev machine and server are running the same versions of the following:
   dotnet
   node

我发现安装了“ dotnet-hosting-2.1.3-win.exe”却从没有重启IIS“ iisreset / noforce”并认为它可以正常工作……卸载,重新安装5天后,只需要简单的命令来修复它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM