1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2009
    Rep Power

    How to run angular site in IIS 10 on Windows Server 2016

    Please visit this site here:


    It's an angular 2 site running on a linux machine with node.js. We are trying to transfer the site over to a Windows Server 2016 machine running IIS. I'm having trouble.

    I copied all the source code onto the Windows Server as-is. I'm able to run the site as-is from the server but it crashes when looking for certain resources:

    I started with common.js. I did a search on the server and compared it with a search on my development machine (where the source code is sitting). The two searches show that common.js exists in exactly the same places on both the server and my machine (and there's more than one):

    The site works on my development machine. Why would it be able to find the resources on my machine but not on the server?
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    I haven't used IIS since v5 and never used angular, sorry. Perhaps someone familiar with this issue will jump in.
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
  4. #3
  5. Lord of the Dance
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Oct 2003
    Rep Power
    I had a look at the link you provided. In here, I can see it looks for common.js file in a subfolder called 'client'.

    I can't see this folder on the pictures you provided.

    I will suggest you have a second look and verify all paths are correct.

IMN logo majestic logo threadwatch logo seochat tools logo