skip to Main Content

Can't get any response from ASP.NET Web API

My controller: public class CommentController : ApiController { private readonly ICommentRepository _commentRepository; public CommentController(ICommentRepository commentRepository) { _commentRepository = commentRepository; } public IHttpActionResult GetComments(int Id) { var comments = _commentRepository.GetComments(Id); return Ok(comments); } } WebApiConfig file: public static void Register(HttpConfiguration config)…

VIEW QUESTION

ASP.NET Web API Google OAuth keep return "Access Denied"

I need to integrate my ASP.NET Web API with Google and Facebook OAuth. I was following all the steps from https://bitoftech.net/2014/08/11/asp-net-web-api-2-external-logins-social-logins-facebook-google-angularjs-app/ but no luck.. Every time I login to my Google Account, it always returns an "Access denied" xml page.…

VIEW QUESTION
Back To Top
Search