0

Hi I started working on visual studio 2017 and trying to create small webapi application using .net core. I followed https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api. My application name is RestPrototype. When i click on the arrow of run i can see below options. 1. RestPrototype 2. IISExpress. In visual studio browser options were coming. When i click on the name of the application(RestProtocol) program begins to run. First one black screen appears next IE will open and close. I have attached below screen shot.

enter image description here

Can someone help me to run the above application? Any help would be greatly appreciated. Thank you

Niranjan Godbole
  • 2,135
  • 7
  • 43
  • 90

1 Answers1

4

After clicking on your project name RestProtocol under Run option your project gets started and it gets self hosted.
So you able to see whether the port number assigned to your project is active or not using Resource Monitor in your system.
If it is active use Postman or other rest client to give Web API request that you had created in your project. You can see your rest API will works.
I tried this it works for me.

Clinton Prakash
  • 967
  • 9
  • 20
  • Thanks for your answer. When I try using postman, I am able to debug and get result as expected. In vs2015 I was able to display result in browser itself. Now one json file is downloading in downloads that contains required results. – Niranjan Godbole Dec 08 '17 at 05:41