Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

API Method to Return "../images/xyz.png" is returning "/api/images/xyz.png"

$
0
0

Hi

I have a service method with some hardcoded "C#" - this service API is part of the main Asp.Net MVC Core web application (not a separate project).

Error message: http://localhost:5000/api/images/blockdevice.png 404 (not found).

//READ - TREE NODES FOR {SYSTEM - TABLE - LOOKUP SETUP etc.}
[HttpPost]
public async Task<IActionResult> ReadSystemTree([FromBody]object route)
{

.....
icon = "../images/blockdevice.png", 
....

}


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>