Last post Dec 14, 2018 02:14 AM by Fei Han - MSFT
Dec 13, 2018 06:32 AM|UnVandy|LINK
Dear all experts
When i run my controller => https://localhost:44306/api/Default in asp.net web api it doesn't show anything show in browser just show
but when i try to create other asp.net web api it shows as normal with its default values, so can any tell me what is the problem ?
Thanks in advance !
Dec 13, 2018 03:19 PM|PatriceSc|LINK
It is really named DefaultController ? It's unclear if you meant that you have another controller in the same web api project that works or if you mean that you have another web api projects that works.
You could also perhaps place a test.htm file at the root and see if it works (in short I'm trying to understand if this is a problem with just a controller or if you can't reach anything on this site not even an HTML page).
Dec 14, 2018 02:14 AM|Fei Han - MSFT|LINK
Firstly, as PatriceSc mentioned, please make sure if your controller named
DefaultController. And if possible, please share the code of your DefaultController.
Secondly, you can try to add another empty Web API controller, and simply implement controller action, like below. And then test if you can access that new one.
public class YourControllerNameController : ApiController
public string Get()
return "Test Value";