502.5 error Javascriptservices SPA Template build #437

Closed
opened 2025-08-09 17:16:17 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @KurtGarrettALS on 9/8/2017

Regarding using the SPA Templates with VS2017 15.3.3
Posting this in hopes that it is helpful. I worked out the issue for my situation.
Symptoms:
A. Development Machine

  1. Project generated with "dotnet new ".
  2. Runs fine on local development machine (Win7Pro64).
  3. Only .net Core 2.0 installed.
  4. NOTE: no changes to Project, exactly as generated from template engine.
  5. Switch to "Release" and set ASPNETCORE_ENVIRONMENT to "Production"
  6. Publish with Web Deploy Package method.

B. Over to the Server

  1. Win2008R2SP1(64)
  2. New HyperV...never used to host web services.
  3. Set up per instructions https://docs.microsoft.com/en-us/aspnet/core/publishing/iis
  4. Install Web Deploy 3.6 via WPI.
  5. Import published application using Deploy
  6. ERROR 502.5 (both from "Browse" locally and remote machine) Latest Google Chrome in both cases.

Punchline: installed .net core 1.1.2 runtime on server, 502.5 error goes away and application works fine.

*Originally created by @KurtGarrettALS on 9/8/2017* Regarding using the SPA Templates with VS2017 15.3.3 Posting this in hopes that it is helpful. I worked out the issue for my situation. Symptoms: A. **Development Machine** 1. Project generated with "dotnet new <framework name>". 2. Runs fine on local development machine (Win7Pro64). 3. Only .net Core 2.0 installed. 4. NOTE: no changes to Project, exactly as generated from template engine. 5. Switch to "Release" and set ASPNETCORE_ENVIRONMENT to "Production" 6. Publish with Web Deploy Package method. B. **Over to the Server** 1. Win2008R2SP1(64) 2. New HyperV...never used to host web services. 3. Set up per instructions [https://docs.microsoft.com/en-us/aspnet/core/publishing/iis](url) 4. Install Web Deploy 3.6 via WPI. 5. Import published application using Deploy 6. ERROR 502.5 (both from "Browse" locally and remote machine) Latest Google Chrome in both cases. Punchline: installed .net core 1.1.2 runtime on server, 502.5 error goes away and application works fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#437
No description provided.