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

asp.net core 2 razor pages with webAPI 404 when deployed on IIS

$
0
0

hello everybody,

i am puzzled by what i am currently facing with regards to calling webAPI that is integrated with razor pages. here is my setup basically i am using razor pages with angularjs on the client then added an API controller while on development stage i can call the API without any issue and it is primed for deployment but before that i published it to a test server with IIS everything is working except for the API and when i tried calling the API through angularjs it returns 404 that is where i am puzzled. Now my question is is there a special configuration for the API like the routing? and how come when it's on development stage i could perfectly call it but upon deployment it always says 404?

Thanks in advance


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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