aspnetcore-angular-universal icon indicating copy to clipboard operation
aspnetcore-angular-universal copied to clipboard

Can't deploy on IIS

Open GonzaloAndrade opened this issue 8 years ago • 5 comments

Hi, I deployed this application from VS2017 to my Windows Virtual Machine with IIS.

image

The app runs but then I try to open localhost:5000 on my browser I get the following error: image

Any help would be appreciated.

Update: I was able to run the project by cloning, running the scripts and then dotnet run.

Still can't get the project working with VS2017 publish option.

GonzaloAndrade avatar Jun 01 '18 20:06 GonzaloAndrade

Can you take a look at some of the other issues about IIS, I'm not sure if there's something else that you might be missing. I have only deployed to AWS and Azure myself. Possibly Node is missing, or there is some kind of folder/base-path issue going on.

Sorry I can't be of more help!

https://github.com/MarkPieszak/aspnetcore-angular2-universal/issues/412

IIS issues to look through here https://github.com/MarkPieszak/aspnetcore-angular2-universal/issues?utf8=%E2%9C%93&q=is%3Aissue+IIS

MarkPieszak avatar Jun 02 '18 20:06 MarkPieszak

this seems related to #633

RZeni avatar Jun 03 '18 06:06 RZeni

Known issue for SSR, https://github.com/angular/angular-cli/issues/8616. #639 fixes this problem.

GRIMMR3AP3R avatar Jun 04 '18 14:06 GRIMMR3AP3R

#639 merged https://github.com/MarkPieszak/aspnetcore-angular2-universal/pull/639 @GonzaloAndrade take a look and see if updating your webpack code like shown there fixes it for you as well!

@GRIMMR3AP3R 💯 💯

MarkPieszak avatar Jun 05 '18 07:06 MarkPieszak

Everything works now 👍 Thanks!!

GonzaloAndrade avatar Jun 06 '18 16:06 GonzaloAndrade