asp.net web api oauth + third party like facebook
I've made api server for my service using asp.net web api + oauth2 authentication.Currently our client device are android, iOS, angularJS web.Everything was okay except adding third party oauth2...
View ArticleWebAPI authorization token sometimes not working between webforms/webApi
I have ASP.Net web forms project & ASP.Net Web API .We have mobile app that open login page from web forms portal then I requested token requested from WebAPI for the current login user and save...
View Articlehow to enable mix mode for asp.net web forms app
Hi,I have a .net framework 2.0 dll for AX 4.0 business connector that I need it working in new .net 4.7.1 Web API project.I tried but it is not working , it throw error said the application is in break...
View ArticleUnable to exclude Folders during Deployment or Publish using VS2015
I have a Web API project which has some folders that needs to be included only when I am using Mock configurations. Release and QA should never have these folders after the deploy. Previously I was...
View ArticleWebAPI Call ajaxs request from client Chrome is not working
HI, I have created webapi and i have added CORS . By using ajaxs request from client , working in IE but Chrome not working.Error in chromeOPTIONS http://localhost:53693/api/SOP/1 0 ()
View ArticleAngular Js Version and Visual Studio Version
Hi everyone! I have got an assignment to implement CRUD and some other functionalities. Stack is .Net MVC 5, Web API and Angular Js of my choice (between 2,4 or 5). I am very new to angular js and...
View ArticleHow can I use the ASP.NET WEB API with REST
How can I use the ASP.NET WEB API with REST
View ArticleApplying filters on nested object in OData.
Hi, I am writing a new OData service and my controller looks like...
View ArticleInserting middleware before a .Net Framework WebAPI call
Hello All,Following John Atten's (kind of old) tutorial I am trying to layout a program structure similar to this picture (minus the authentication). I have a functional RESTful application,...
View ArticleAsp.net Core 2.0 Web Api Code First not working after successfully deployed...
hi I am newbie in asp.net Core 2.0 web Api. I was unable to find out the problems after many hours of trying. Please help.I have successfully created a Sql Server Database with Code First approach but...
View ArticleJSON Deserializing fails: Newtonsoft.Json.JsonReaderException: 'Unexpected...
Whenever I’m running a DeserializeObject command to convert JSON to C# object, I’m getting the JsonReaderException, and the process stops at this line in my JSON:\"emails\":...
View ArticleHow to create a url string to use in browser address bar
Hello,I'm trying to figure out how to create a url to manually test an API. I'm talking about a string of characters that I can enter into my browsers address bar and when I press enter, it processes...
View ArticleBuilt a RESTful API .. now what ... how can I display the json results in the...
Built a RESTful API .. now what ... how can I display the json results in the simplest index.html page? My api reads columns and rows from a mssql database tableCould someone please help me out with a...
View Articleworking with cookies in a Message Handler
Hello All,This question pertains to 4.6.1 in VS2017.I am following the docs here for getting cookie data from a...
View ArticleError making a POST request with Bearer Token to REST API using C#
I am able to POST to an REST API with Basic authentication and getting successful response back, along with the Token. Now I need to pass the token to the site. I am having some difficulties as to...
View ArticleRestful Web API not working (HTTP 404 Not Found)
Hi,New to WebAPI Restful service. This is what I have done.Tried different approaches like attribute routing etc to pass multiple parameters1) Global.asax.cs (Application Start Event) void...
View ArticlePHP OAuth 2.0 authorization API and .NET Resource API
So we have a custom built PHP authorization Server that uses OAuth 2.0 bearer tokens and several resource APIs built in PHP. these are on different machines. Now we want to develop .NET APIs also but...
View Article401, Unauthorized, WWW-Authenticate →Bearer error="invalid_token",...
Hi -I am calling my Web Api from a console app and always get the unauthorized error.<div>string aadInstance = "https://login.windows.net/common/oauth2/authorize";</div> <div>...
View ArticleRead XML with or without namespace using frombody in Web API 2
Hi All,I am facing an issue to handle a XML with/without namespace . I am able to read XML with namespace file if I provide/use the [XMLRoot(namespace="xyz")] on respective class object. But If I pass...
View ArticleHow to get data from two tables using web api
I want to get data from two tables using web api, but I'm receiving an error.Here is my code:public List<tblEmpTask> GettblEmpTasks() { var q = (from n in db.tblEmpTasks join c in db.tblEmployees...
View Article