Quantcast
Channel: Troubleshooting
Viewing all articles
Browse latest Browse all 1814

MVC app - all requests return 404 when published in IIS 10

$
0
0

Hello,

I have a big problem with a published MVC app that consumes a Web API.

The MVC app and the Web API work as they should on local.
I use Windows 10.


The problem appears when I publish the frontend app on IIS 10. 

The page shows only the static files(the UI part of the site) but when I make a request it returns the correct page as it should, but with no data in it. In the console I get 404 not found for the respective path even though the view of that specific page is working.

For example: the url for  ip/Customer/CustomersList returns the view for that page but the console says: "GET ip/Customer/CustomersList 404 Not Found ."

I have made the IIS settings accordingly to the tutorials from the MSDN. I have also tried different IIS configurations suggested on forums by people with the same issue. I have also tried to make changes in web.config. Still not getting this to work.

The Web API that the app consumes has been sucessfuly hosted on IIS with no problem and it works great both on local and IIS.

I just can't figure out what the problem is.


Viewing all articles
Browse latest Browse all 1814

Trending Articles



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