Data dodania Pytanie
2017-09-30 21:09 Passing several query parameters to a GET endpoint in .netcore web api »
I have an application where there will be several parameters passed to my endpoint for searching, these parameters are not defined because they are dy...
(2) odpowiedzi
2017-09-30 17:09 Identityserver4 setup for native mobile app with custom and social login »
Trying to get my head around the Identityerver4 setup for my project. I have a mobile app where users should be able to login with either facebook or ...
(0) odpowiedzi
2017-09-29 23:09 Property of Observable is Empty »
I've worked through most of the Heroes tutorial and have decided to add a Hero Tracker which displays a map with the Hero's location on it. This work...
(1) odpowiedzi
2017-09-29 21:09 Response is undefined »
I've followed the Heroes tutorial and I am now attempting to retrieve my hero data from an MVC web api rest service. I have modified the GetHeroes() ...
(2) odpowiedzi
2017-09-29 16:09 Apply MediatR requests dynamically to objects »
I am trying to use MediatR in my web api application. My requirements states that, when a request arrive, it should be executed against a variable num...
(0) odpowiedzi
2017-09-28 14:09 ASP.NET WebApi versioning not working »
I'm trying to implement api versioning following this tutorial. So in my startup I have: var constraintResolver = new DefaultInlineConstraintResolver...
(1) odpowiedzi
2017-09-28 13:09 Pdf corrupted in HttpResponseMessage »
I have a ASP.NET MVC 5 project in which i am trying to download a pdf. I thought this would be pretty straightforward, but apparently not so, as the p...
(1) odpowiedzi
2017-09-28 08:09 Using Repository pattern - selecting specific fields of the entity for EF performance reasons »
So, I am having a hard time with this Repository pattern. In lots of articles, posts and etc. I read that the repository should return only database o...
(1) odpowiedzi
2017-09-27 19:09 Issue in calling web API by using HttpClient Vs. WebClient C# »
I am trying to make a web API call by using HttpClient but getting Not authorized error. I am passing key in the header but still, it gives me this er...
(1) odpowiedzi
2017-09-27 16:09 How to authenticate users to access WebAPI using ADFS SAML token »
I'm working on project having two applications (ASP.NET MVC) WebApp and WebAPI. WebApp using ADFS for authentication, so user enters UserName and Pass...
(0) odpowiedzi
2017-09-27 15:09 Why do I get a circular reference DummyApiController --> DummyApiController when using a specimen builder? »
I'm trying to generate some subclasses of ApiController (WebAPI 2) using AutoFixture (3.50.6). I customized AF to allow generating ApiControllers usi...
(0) odpowiedzi
2017-09-26 21:09 JSON data not being saved in WebAPI »
I'm following a Pluralsight course on AngularJS and WebAPI together. I'm trying to save data being sent from the client to the server using PUT, but t...
(2) odpowiedzi
2017-09-26 21:09 Web Api GET with arguments »
Is it possible to have a route like the following: MyApi/v1/Events // gets all the events from the db MyApi/v1/Events?Longitude=4.4777&La...
(2) odpowiedzi
2017-09-26 12:09 ASP.NET Web Api configuring a specific route not executing message handler »
I am trying to configure a specific route to execute a message handler before it hits the controller, however the message handler is never executed. ...
(1) odpowiedzi
2017-09-25 19:09 ASP.NET Core 2.0 OpenIdDict with Facebook mobile application »
Could you please provide me an example or description how to return an access token to the mobile application with facebook login. Here is the workfl...
(1) odpowiedzi
2017-09-25 19:09 Appending formdata with additional key value pair and retrieving in WebAPI controller »
I am trying to upload a file using webapi and adding additional parameters to formdata. But i couldnt able to get those additional param values in Con...
(0) odpowiedzi
2017-09-25 11:09 CamelCasePropertyNamesContractResolver not Working after MapHttpRoute »
I'm trying to implement JSON camel casing in my .Net API project. In my start up class I add the following lines: config.Formatters.JsonFormatter.Ser...
(0) odpowiedzi
2017-09-24 22:09 For protecting a WebApi, how do I choose between UseWindowsAzureActiveDirectoryBearerAuthentication vs. UseJwtBearerAuthentication vs. »
There are many code samples showing how to protect a WebApi by registering authentication in Startup.cs, and they all use any one of the Owin Middlewa...
(2) odpowiedzi
2017-09-24 05:09 Where to store image if the image is used in two different websites »
I want to upload the image in my website. The same image will be shown in another website. So this is the scenario where image is uploaded in one webs...
(1) odpowiedzi
2017-09-24 03:09 Android volley return post response »
I send my username and password to c# web api via Anadroid Volley: StringRequest stringRequest = new StringRequest(Request.Method.POST, URL, ...
(0) odpowiedzi
2017-09-23 18:09 Web API, Entity Framework insert stored procedure »
I am trying to learn Web API + Entity Framework. To use stored procedures for database access through Web API. I've successfully done get call with s...
(3) odpowiedzi
2017-09-23 10:09 GET all products by using id field »
I have an WEB API which have CRUD operation. For testing I have created a Console application. Create and GET all details are working fine. Now i want...
(1) odpowiedzi
2017-09-23 02:09 Too many redirects - Owin External Login with Facebook Asp.Net »
I'm creating a web-api where I need to log people in using Facebook. I'm following this guide. Once I provide my credentials to Facebook, it should ...
(1) odpowiedzi
2017-09-22 18:09 DBContext between business layers »
I've created two projects: Web Project, that contains all the viewmodels/data/controllers etc. And a Web Api project to allow form capture. I simply...
(1) odpowiedzi
2017-09-22 17:09 .net Core WebApi Content Negotiation »
I'm trying to add a CSV Output Formatter to my .NET Core 1.1 WebApi. I've installed WebAPIContrib.Core package (https://github.com/damienbod/WebAPICo...
(1) odpowiedzi
2017-09-22 12:09 How To Return Http 102 Processing in Asp.Net Web Api? »
I am building a REST API using ASP.NET Web API. I have a post request that may take more than 30s to complete. I resolved this by returning a 200 OK a...
(0) odpowiedzi
2017-09-21 19:09 WebApi: Get api/Record/id/Tags »
In my ASP.NET MVC (6) web Web Api I have [Produces("application/json")] [Route("api/Record")] public class RecordController : Controller { // .....
(1) odpowiedzi
2017-09-21 17:09 StructureMap Web API conflicts in ASP.NET MVC app »
I had an ASP.NET MVC 5 app already using StructureMap for dependency resolution in its controllers. After adding the apps first API controller, I inst...
(0) odpowiedzi
2017-09-21 15:09 Update method in web API: How to know which fields to update? »
I have a typical web API with a couple of PUT/UPDATE endpoints. These endpoints simply call the underlying service, and do the update. The service la...
(1) odpowiedzi
2017-09-20 23:09 Modularity:JS/CSS content and Asp.Net WebAPI »
I am working with a C# ASP.NET WEB API2.0 APP. The Application has ReactJS as frontend. This application is deployed as an independent website for eac...
(0) odpowiedzi
2017-09-20 20:09 DbUpdateConcurrencyException on Add »
I am having an issue adding a new entity via the DbContext.Add(...) method. On DbContext.SaveChanges(), I get a DbUpdateConcurrencyException. I'm tr...
(1) odpowiedzi
2017-09-20 10:09 Send model from .Net client to WebApi Server »
There are very simple question, but I can't find answer. I have model with multiple field. For example: public class BillingInfoViewModel { //Dis...
(2) odpowiedzi
2017-09-19 23:09 Dapper, SimpleInjector and Open Data Reader Errors »
I'm hoping someone can help me with a problem that is really confusing me. Here's the scenario: SimpleInjector is used as a DI container, and a Sql...
(0) odpowiedzi
2017-09-19 21:09 Reusing a bearer token for multiple API calls »
I have an architecture where by I have an initial ASP MVC landing page which calls into a Web API service which inturn calls into 2 others which thems...
(3) odpowiedzi
2017-09-19 10:09 How to add a request identifier to OWIN requests using Serilog? »
I'm trying to get the same as with using SerilogWeb.Classic.WebApi using this: app.Use(async (owinContext, next) => { using (Serilog.Context.L...
(1) odpowiedzi