Mandar Shinde

Mandar Shinde

  • NA
  • 423
  • 114.7k

Regarding Angular 5 and ASP .Net MVC project deployment.

Jun 3 2019 5:12 AM
Dear All,
I have devloped one small project using Angular 5 and  ASP .Net MVC 5 with Rest Api.
 
I have two doubts while deploying  my project on web server those are as follows :-
 
1. I am not able to use command ng build --prod  If am try to use that command then I am getting errors like I have few variables defined in my environment.ts.
 
 2 If I am try to use web.config in my Angular 5 project for URL rewrite purpose then I can refresh my Angular project but because of that I am not even able to login because of controller.
 
After uploading I am using Default  website in that physical path is set to Angular 5 project and created a folder for ASP .Net project physical in server settings.
 
Please let me any easy solution to overcome on above two problems.
 
I am asking this again and again because I don't have that much domain knowledge.
 
Any suggestion will be acceptable. 
Thanking you in advanced.
Regards. 

Answers (7)