Create perhaps a project checking both MVC and Web API and see which differences you have compared with this project? Maybe a problem regarding the order in which the API is configured ?
I'm glad that you have solved the issue by yourself.
I suggest you could post the details answer as reply and mark it as answer.
This will help other people who faces the same issue.
Thank you very much.
Best Regards.
Yuki Tao
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
So why did you mark one poster's reply as an answerer> Why didn't you do what the poster requested about making a post on what you did and what steps you took to resolve the problem so those that may face similar issues can learn from what you did?
If you find the post has answered your issue, then please mark post as 'answered'.
Member
12 Points
54 Posts
Problems with web API 2
Feb 26, 2019 12:40 PM|aprangulashvili|LINK
Hi all
i have created standard project in MVC and then add API controller. When i trying to access api on address api/controller, i have error .
https://drive.google.com/file/d/1vXDda64hrCSFXQsBvLg8FCwRdI8ZiHWw/view?usp=sharing
https://drive.google.com/file/d/1D3rsdr3XHttjimg4cZWuB5DUlMEA7IPq/view?usp=sharing
https://drive.google.com/file/d/18oxjXyTcfwOfkJIXwL0WilRF7BtGOa8w/view?usp=sharing
All-Star
48300 Points
18003 Posts
Re: Problems with web API 2
Feb 26, 2019 01:43 PM|PatriceSc|LINK
Hi,
Create perhaps a project checking both MVC and Web API and see which differences you have compared with this project? Maybe a problem regarding the order in which the API is configured ?
Member
12 Points
54 Posts
Re: Problems with web API 2
Feb 26, 2019 02:08 PM|aprangulashvili|LINK
Yes. it's working
thanks
Contributor
3710 Points
1431 Posts
Re: Problems with web API 2
Feb 28, 2019 08:22 AM|Yuki Tao|LINK
Hi aprangulashvili,
I'm glad that you have solved the issue by yourself.
I suggest you could post the details answer as reply and mark it as answer.
This will help other people who faces the same issue.
Thank you very much.
Best Regards.
Yuki Tao
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
4873 Points
4123 Posts
Re: Problems with web API 2
Feb 28, 2019 06:22 PM|DA924|LINK
So why did you mark one poster's reply as an answerer> Why didn't you do what the poster requested about making a post on what you did and what steps you took to resolve the problem so those that may face similar issues can learn from what you did?