Can't get data from server when publish to IIS #1271

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

Originally created by @Tisha28 on 11/10/2016

Hi,
I've faced with the folllowing problem. I created application in accordance with the following guide http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/
I don't do any modifications, just work with template. When application is run from Visual Studio all pages are opened successfully. But when application is published on IIS, then "Fetch data" page is loaded with error in console that the route localhost/api/fetchdata/WeatherForecast can't be found.
I have published application from Visual Studio with File System publish method.
Does anyone know how to solve this problem?

*Originally created by @Tisha28 on 11/10/2016* Hi, I've faced with the folllowing problem. I created application in accordance with the following guide http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/ I don't do any modifications, just work with template. When application is run from Visual Studio all pages are opened successfully. But when application is published on IIS, then "Fetch data" page is loaded with error in console that the route localhost/api/fetchdata/WeatherForecast can't be found. I have published application from Visual Studio with File System publish method. Does anyone know how to solve this problem?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1271
No description provided.