Hi , I am starting to learn the asp.net Web api, and created my first web api based on visual studio 2015 template by choose web api template,
I compile it and run it, I can see the Home and API page under IE,
But when I try to call the Value controller by localhost of :
http://localhost:50994/api/values, I always got the pop up message on my bottom of browser with Open and Save option, I even click Open, I can not open the page which showing the Jason list value of ["value1","value2"] as some youbube tutorial demo.
Do I have to do any set up on my web config file or Application start class in order to show it properly? thanks a lot
when I try to use Google Chrome, I got this error:
<Error>
<Message>Authorization has been denied for this request.</Message>
</Error>
Member
344 Points
2139 Posts
How come the Values controller does not display the jason data?
Jun 10, 2018 01:46 AM|Peter Cong|LINK
Hi , I am starting to learn the asp.net Web api, and created my first web api based on visual studio 2015 template by choose web api template,
I compile it and run it, I can see the Home and API page under IE,
But when I try to call the Value controller by localhost of : http://localhost:50994/api/values, I always got the pop up message on my bottom of browser with Open and Save option, I even click Open, I can not open the page which showing the Jason list value of ["value1","value2"] as some youbube tutorial demo.
Do I have to do any set up on my web config file or Application start class in order to show it properly? thanks a lot
when I try to use Google Chrome, I got this error:
<Error>
<Message>Authorization has been denied for this request.</Message>
</Error>