Data dodania Pytanie
2016-12-19 21:12 Wrapping IHttpActionResult - Generic solution »
I'd like to wrap IHttpActionResult because I need some extra data to be consumed by the client app. My first approach was to create and return simple...
(2) odpowiedzi
2016-12-19 13:12 ASP.NET Identity UserManager IIdentityMessageService pass extra parameters to SendAsync »
I've successfully created custom email service provider for UserManager by extending IIdentityMessageService: public class ExchangeEmailService : IId...
(0) odpowiedzi
2016-12-19 10:12 How to parse Json WebApi response containing C# list »
hi I have a json response like {"Status":"Success","Message":"Authentication successful","Data":{"Key":"sdsdIRs99Iebe6QHmawlBsCks9mqfUt6jKYNQ%2...
(2) odpowiedzi
2016-12-18 19:12 Secure WebApi call using a client certificate c# »
I am trying to make a secure web api call to a 3rd party. They provided us with a .jks client certificate. I used keytool to convert it into .pfx file...
(0) odpowiedzi
2016-12-18 16:12 Outlook API: getting access-token from front-end, how can i use it in web API backend to get Outlook messages »
Im writing a application for outlook, front-end Angular, backend Web API. I'm successfully getting access-token using adal in front-end, sessionStorag...
(1) odpowiedzi
2016-12-18 05:12 Is there a way to change Property Name in JSON data »
Is there a way I can change the column/property name I'm returning from a JSON response through a Web API ? Sample JSON response: [ { "ActualProp...
(2) odpowiedzi
2016-12-17 23:12 Building REST APIs using ASP.NET Core with Razor syntax »
As I was exploring the articles and contents on the internet about building REST APIs using asp.net core, I found out that razor web pages are not com...
(1) odpowiedzi
2016-12-17 21:12 Use two way to create bearer token for users in web api 2 with owin context »
I have a Asp.net web api 2 project. In this project i use owin authentication. I have two kinds of users. One type of are those who log ins with user...
(0) odpowiedzi
2016-12-17 02:12 can async methods block on the variable instead of the call to the method? »
Trying to write an API, and I have a weird case which I tried to solve like: if (!request.WillCheckGetLater) { // Client ...
(2) odpowiedzi
2016-12-16 15:12 Hook OData's $metadata response and convert it from XML to JSON »
The answer of Get OData $metadata in JSON format states that OData cannot return the metadata as JSON by default. But is it possible then to capture ...
(0) odpowiedzi
2016-12-16 09:12 ASP.Net Web API vs WCF, which one should I choose in my project »
I have read many articles in the web so far, about the differences between WCF and ASP.Net web API. Unfortunately I could not come up to a clear idea ...
(4) odpowiedzi
2016-12-16 03:12 How to get google analytics data using "Simple API key" in C#? »
I am trying to use simple api key to get Google Analytics data from C#, but I am getting a login required error. Can some one help me how to get Googl...
(1) odpowiedzi
2016-12-15 16:12 Why is Asp.net Core returning JSON instead of a CSV file? »
I have a web method that should return a CSV file for the browser to download when it is hit. Instead, it is returning a JSON object that the browser...
(0) odpowiedzi
2016-12-15 10:12 success is not a function angularjs »
I want to make simple String webApi get request by angularjs I do not know what is the problem Is there any better way to get simple string from web...
(1) odpowiedzi
2016-12-15 00:12 Making a simple Web API post request »
I'm really struggling with making a basic post request in a url to support a tutorial on web api. I want to do something like this in browser: http:/...
(2) odpowiedzi
2016-12-14 11:12 Don't return from action until task ends »
I am a little bit lost in async tasks within ASP.NET Web API action. I have an action: [HttpPost] public async Task<HttpResponseMessage> Restar...
(2) odpowiedzi
2016-12-14 11:12 How to manage HttpClient in Windows application? »
I have a windows application for registration.In First form I make an static object from HttpClient class: static HttpClient client = new HttpClient...
(0) odpowiedzi
2016-12-14 07:12 What is the best way to use in memory data in Asp.net Web API project for demo »
I am building Asp.net Web API demo project, i don't want to use any data provider, neither entity framework nor Ado.net. I build the Repository, pu...
(1) odpowiedzi
2016-12-13 20:12 Access denied to ASP.NET WebAPI on IIS »
I have to ASP.NET applications: one is a Web API and the other a MVC that makes requests to the first. Everthing works in development (VS with IIS Ex...
(1) odpowiedzi
2016-12-13 10:12 Can EF sometimes retry after successful write? »
I have UNIQUE constraint on a database table which is occasionally throwing an exception when writing a new record. The constraint covers three fields...
(1) odpowiedzi
2016-12-13 04:12 asp net core project MVC controllers using Cookie Authentication and api end points using Bearer »
I am working on a project using ASP .net CORE, where we have Angular 2 and MVC and API, need to be protected by Azure AD. Home/Index MVC controller w...
(1) odpowiedzi
2016-12-12 18:12 Varying Unity injection by HttpRoute in C# Web API »
I am working on a Web API service to a datastore with common methods like GetAll, GetById, Search, Insert, Update, and so on. I have the following c...
(2) odpowiedzi
2016-12-12 17:12 Calling GET method that return IHttpActionResult from AJAX? »
AJAX works fine with the GetAll method that returns IQueryable, but with GetOne, it doesn't work and return "undefined" to the browser, here is the G...
(2) odpowiedzi
2016-12-12 10:12 Override content headers for MVC POST request »
I am fairly new to MVC so I am hoping there is a solution to my problem. I am using third party hardware to communicate with my MVC web API. The hardw...
(2) odpowiedzi
2016-12-11 19:12 Is EntityFramework supposed to be that slow? »
I'm trying to create a simple API for my client mobile app. I created new empty Web API project and an action but it is extremely slow: [HttpGet, Ro...
(1) odpowiedzi
2016-12-11 16:12 Returning dynamic key value collection in ASP.NET Web API »
I am developing an ASP.Net Web API project. In my project, I am trying to return JSON from action in this format. { "Apple": null, "Microsoft": n...
(1) odpowiedzi
2016-12-11 13:12 Unable to save data Xamarin android application using web api »
It is my first code in xamarin and I want to just save the data using web api but I am unable to do so after hours of hardwork. Can anybody help to id...
(1) odpowiedzi
2016-12-10 20:12 Custom authorization in Web API v2 »
My Web API v2 application uses IdentityServer to authorise API requests by checking for a valid bearer token in the request header. This works fine. H...
(0) odpowiedzi
2016-12-10 11:12 JavaScript WebApi references: where to store them? »
Im new to javascript and want to start writing code as clean(correct) as possible. I use C# WebApi as backend and simple pure HTML + JavaScript projec...
(1) odpowiedzi
2016-12-10 09:12 Jquery file download no callback working »
I am using the jquery.filedownload plugin with asp web api to download a file and display error message from the server. I have setup the plugin and ...
(1) odpowiedzi
2016-12-09 13:12 How to post form data from razor view to WebApi as dictionary? »
I have a lot of forms created with helper Html.BeginRouteForm I want to post it to my web api controller and I can do it with predefined DTO. But ...
(1) odpowiedzi
2016-12-09 11:12 how to deploy a azure api app to private network »
I would like to use some of the benefits of hosting a web api in Azure, but I want that api to be private (not accessible from the outsite world) as i...
(2) odpowiedzi
2016-12-09 08:12 OWIN CORS Issue in Web API »
I am working with WebApi and trying to add token based authentication using OWIN. It is working fine when client and service are in the same port. But...
(1) odpowiedzi
2016-12-08 21:12 "The requested resource does not support HTTP method 'PUT' ASP.Net Web API »
My jQuery Put request does not work, when I run my code in debug mode the put function does not get called, and from FireBug I can see this error: ...
(1) odpowiedzi
2016-12-08 15:12 Moq WebApi async method »
I'm new to testing with Moq, so I'm confused a bit regarding ReturnsAsync. Here is my test method, where I'm expecting ReturnsAsync should receive typ...
(2) odpowiedzi