Data dodania Pytanie
2017-04-10 10:04 iOS, Android & Web application development with .Net Web Api architecture & Google http web services »
I'm developing a cross platform application which works with iOS & Android and web application which shares common business logic from .Net Web AP...
(1) odpowiedzi
2017-04-10 09:04 Web API .Net Core Azure Active Directory Authentication »
Playing around with Angular2 and ASP.NET Core (Web API). Currently I successfully login through the UI and I am storing the id token that is returned...
(2) odpowiedzi
2017-04-09 19:04 Reading keys from app.config »
Reading keys from app.config is not working I have 4 layers in my solution: Business Layer Data Access Layer Presentation Layer Shared Layer I ad...
(1) odpowiedzi
2017-04-09 17:04 How to bind JSON response from httpClient.PostAsJsonAsync »
I can httpClient.PostAsJsonAsync(path, content) fine. However, this post returns some JSON with details of the response, eg: {"StatusCode":200,"Acces...
(1) odpowiedzi
2017-04-09 15:04 The rest Api returns data but it is not showing up on the page »
I am trying to fetch data from the rest api that I made. The api returns data but the angular fails to load it. I could see the data being passed from...
(1) odpowiedzi
2017-04-08 23:04 C# webapi async context issue »
I got two console applications which calls my webapi the same time and I get back in the console application the follow response from my api: A se...
(1) odpowiedzi
2017-04-08 11:04 Getting the response as "data":null,"status":-1 when calling web api from angular js »
I am trying to call Web API GET Method from Angular JS 1.6.0 and getting the following error:- Possibly unhandled rejection: {"data":null,"statu...
(1) odpowiedzi
2017-04-08 09:04 Web Api Clients Authentication (not user authentication) Best Practice »
I'm adding some web api to my project (using mvc web api) for our mobile clients.I'm using OWIN and Bearer Token (password grant type) for user authen...
(1) odpowiedzi
2017-04-07 11:04 Twitter external login is pending forever on .net web api »
I'm facing a weird issue with the Twitter external login of Asp.Net Web Api. I get an endless pending request when trying to redirect to Twitter scre...
(0) odpowiedzi
2017-04-07 11:04 Web Api Get FromUri - ArrayList Issue »
I am new in web api and is now trying to converting the web service to web api. However i encountered issue while running the web api. Please help in ...
(1) odpowiedzi
2017-04-07 09:04 How to run WebApi project on IIS using only command line? »
I have a WebApi project which has used .net 4.5. I am trying run this only using cmd. I have followed many links, blogs etc. which explains to do so u...
(0) odpowiedzi
2017-04-06 19:04 Custom error handling globally in asp.net web api »
I am using asp.net web api. [Route("api/employee")] [HttpPost] public dynamic GetData(EmployeeModel model) { EmployeeService emp = new Employee...
(0) odpowiedzi
2017-04-06 13:04 ASP.NET WebAPI vs MVC subtle behavioural deviations when it comes to json-(de)serialization of parameters »
Let's assume we have the following simple ajax-call: $.ajax({ url: "/somecontroller/someaction", data: JSON.stringify({ someString1:...
(1) odpowiedzi
2017-04-06 07:04 Self Signed Certificate is always null in Web Api »
I have spent a complete day on this one and see no way out except to ask my fellows here. We have a web api which accepts a X509 certificate but foll...
(0) odpowiedzi
2017-04-05 14:04 What are the options for returning a custom DTO with a specific status code using ServiceStack? »
We're using ServiceStack to build a web API. I have a situation where I want to be able to return a response of 400 (BadRequest) from an API endpoint ...
(1) odpowiedzi
2017-04-05 09:04 UpdateAsync method is not work in web api? »
I am create small demo for user registration using web api mvc c#.i am register Succeeded for user using 'Register' in web api.now i want to using thi...
(1) odpowiedzi
2017-04-05 02:04 ASP.Net Web API Routing with optional parameters »
I Have a Web API endpoint like something below - [HttpPost] [ActionName("ResetPassword")] public HttpResponseMessage ResetPassword(string userN...
(1) odpowiedzi
2017-04-04 21:04 An unhandled exception was thrown by the application. System.InvalidOperationException: Unable to > resolve service for type »
I have a simple asp.net core web api and I am trying to consume just the api/values that comes by default with the visual studio template. however I g...
(2) odpowiedzi
2017-04-04 15:04 Route Parameters not working in WebApi »
Below is WebAPI. [RoutePrefix("api/customer")] public class CustomerController : ApiController { [Route("{id:int:min(1)}/")] public HttpRespo...
(1) odpowiedzi
2017-04-04 14:04 500 Internal: Multiple actions were found that match the request »
AJAX $.ajax({ url: '../api/TechViews/SView', type: 'POST', dataType: 'json', data: J...
(1) odpowiedzi
2017-04-03 17:04 How to receive a byte array and json in a Web API Controller »
I need to receive a json object together with a byte array in a c# Web API application. This is how I am sending the data: public bool SendMedia(str...
(1) odpowiedzi
2017-04-03 05:04 How angular works in WebApi asp.net mvc »
I´m working on Angular Application Asp.Net MVC and I want to know how to received parameters from view to controller: View: <div class="input-gr...
(1) odpowiedzi
2017-04-03 04:04 Anti-Forgery Token Web Api 2 »
I have an AccountController for my Web Api site that uses the default implementation for the login: // POST: /Account/Login [HttpPost] [AllowAnonymou...
(1) odpowiedzi
2017-04-02 23:04 Should API Secrets Be Hashed? »
It might sound like a silly question, because passwords of course need to be hashed and never store the original. However, for API secrets, generally...
(1) odpowiedzi
2017-04-02 21:04 Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' »
I'm making a web application using WEB API 2. Previously, my project ran fine without any errors. Errors only came after I had updated my nuget packag...
(1) odpowiedzi
2017-04-02 10:04 Using HttpContext outside of a Controller - Bad practice? »
I've been writing some logging services for my ASP.NET Core API. I wrote a middleware that will log every action being called (cross-cutting concern, ...
(1) odpowiedzi
2017-04-01 17:04 ASP .NET MVC Controller Injection issue »
In my ASP .NET MVC WebApi project I have controller constructor that receive a parameter, I don't have a prameterless constructor. The dependecies ar...
(2) odpowiedzi
2017-04-01 08:04 Set one ProducesResponseType typeof for several HttpStatusCodes »
I am setting the ProducesResponseType so as to have it documented with Swagger. If the response is succesful (OK => 200), then it produces a IEnumera...
(1) odpowiedzi
2017-04-01 00:04 web api - posting object returns internal server error 500 »
I have a simple web api that uses a database first ADO SQL server entity, with one table in it that has an auto-incrementing identity column and a nva...
(1) odpowiedzi
2017-03-31 22:03 Error while trying to self reference a model in ember.js »
I'm trying to create a self-referenced property in a model, but I'm getting the following error: Error while processing route: index No model was ...
(1) odpowiedzi
2017-03-31 19:03 OWIN ApiController access to the request body/stringified JSON »
This is in OWIN & .Net 4.5.2 Using debug I'm proving this controller's method is being called by the web request. My thing is the request body c...
(1) odpowiedzi
2017-03-31 13:03 WebApi with backslash (%2f) in ID parameter causes 404 not found »
I am calling a WebAPI method with a parameter containing a / (%2f). If I call this with a parameter without this character it works fine. Following ...
(2) odpowiedzi
2017-03-30 17:03 How to specify response type in ASP.NET Core middleware »
My controllers return unified RequestResult: public Task<RequestResult> SomeAction() { ... return new RequestResult(RequestResultType.NotFo...
(1) odpowiedzi
2017-03-30 17:03 External Aspnet Web Api Authentication »
I am using https://github.com/EddyVerbruggen/cordova-plugin-googleplus for external authentication in a mobile app. In the response from google I get ...
(0) odpowiedzi
2017-03-30 17:03 Newtonsoft.JSON Serialize\Deserialize Datatable with GUID »
I have a Web API solution I'm using to work with various databases. Everything was working until I accessed a table with a GUID number in it. I fina...
(2) odpowiedzi