Data dodania Pytanie
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
2017-03-29 21:03 Error handling between web api and angular 2 client »
So I am looking for a pattern on how to handle exceptions. Specifically I want to be able to pass the exception message on to the client from a Web A...
(1) odpowiedzi
2017-03-29 15:03 Web Api OWIN Host with Unity »
I'm trying to implement UNITY on my WebApi2 application. The problem is that I'm using an existing SqlConnection, depending on an identifier found in ...
(1) odpowiedzi
2017-03-29 09:03 Use body stream parameter in WebApi controller's action »
I currently read input stream from body like this: public async Task<IActionResult> Post() { byte[] array = new byte[Request.ContentLength....
(1) odpowiedzi
2017-03-28 20:03 Better way than try-catch to pass failure messages back to Web API caller? »
I've got many Web API calls that delegate to methods in data-layer classes that call my ORM (Entity Framework) and look like this: public OperationRe...
(2) odpowiedzi
2017-03-28 15:03 Simple Injector with MVC and WebAPI »
I have a C# project that includes both WebAPI and MVC controllers with which I would like to use Simple Injector. The Simple Injector documentation at...
(1) odpowiedzi
2017-03-28 10:03 ASP.NET MVC URI parameters naming »
I am working at an ASP.NET MVC Web Api controller, and I am just a beginner so maybe my question is quite trivial... I'd like to take a parameter nam...
(1) odpowiedzi
2017-03-27 16:03 ASP.NET identity doesnt work with web api 2 »
I tried to add ASP.NET Identity to my Web API 2 project. The rest service works fine but whenever I try to register (at http://localhost:3216/Account/...
(1) odpowiedzi
2017-03-27 12:03 Is it possible to programmatically embed Reddit posts in a page? »
Reddit now offers the possibility to embed reddit posts and comments on your page. For posts, the way to do it manually is to click the "share" button...
(1) odpowiedzi
2017-03-27 10:03 How does Ctrl+F5 work in ASP.NET projects in VS? »
I noticed that when I use Launch Without Debugging (Ctrl+F5 instead of F5) in VS2017, it always works. From desktop applications, I'm used to it faili...
(2) odpowiedzi
2017-03-26 18:03 ASP.net MVC Ajax DataTable Error 7 »
Kinda newbie when it comes to ASP.net MVC side of things not sure why I am getting Ajax Error 7 in DataTable here is my code : for cshtml @{ L...
(1) odpowiedzi
2017-03-26 17:03 Unable to create db when registering user using asp.net identity »
Here is my connection string. I am using SQL Server Express 2016. <add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial...
(1) odpowiedzi
2017-03-26 12:03 Unsupported media type ASP.NET Core Web API »
On the front-end i use Angular to collect som data from the form and send it to my server-side controllers. As the image shows below, i get the data (...
(1) odpowiedzi
2017-03-25 23:03 Parse Json object from Angular to C# ASP.Net Core Web API »
I'm trying to create a new Salesman with Angular and C#. From Angular i collect the data the user has typed into an array (newData) and sending it fro...
(3) odpowiedzi
2017-03-25 16:03 Passing objects from Ajax to C# WebApi »
I’m still not fluent in calling WebAPI services. I succeed in simple items, but now my needs are getting complicated and things always fail. I use ...
(2) odpowiedzi
2017-03-25 03:03 WebAPI Authorization Attribute not being called with IdentityServer3 Bearer Token »
I have a WebAPI 2 project that uses a token issued by an IdentityServer3 token provider. In my Startup.cs file I have the IdentityServerBearerTokenAut...
(1) odpowiedzi
2017-03-24 19:03 Ajax request returns 200 but error event is fired »
There is a similar question about this, but I still cannot fix it upon my case. This is my controller method: [HttpPost] [ActionName("SavePr...
(1) odpowiedzi
2017-03-24 16:03 asp.net logging and create file every hour »
I have a very specific requirement. I have a .net web api, and I need to Log everything, I need to log when each api method is called, by who, time, ...
(2) odpowiedzi
2017-03-24 10:03 When bind xml into dataset error Cannot add a SimpleContent column to a table containing element columns or nested relations. »
public DataSet ConvertXMLToDataSet(string xmlData) { StringReader stream = null; XmlTextReader reader = null; try { DataSet xm...
(0) odpowiedzi
2017-03-23 18:03 Test Local Service Against Production Clients »
At our company we have a variety of microservices and web clients that make up our SaaS (software as a service) product. When modifying the behavior ...
(0) odpowiedzi
2017-03-23 16:03 Upload an Excel file to a Web API »
I am trying to upload an excel file to my WebApi and DO STUFF with its contents. I have the extJs part sending the file via an upload button completed...
(1) odpowiedzi
2017-03-23 08:03 ASP WebAPI 2 CSRF tokens »
We have a ASP MVC web application, and we also have a WebAPI 2 project to expose actions that would be executed from unkown clients, might be desktop ...
(0) odpowiedzi
2017-03-23 00:03 ASP.Net WebAPI Owin authentication token in Knockout »
I am trying to create a demo project which uses .Net ASP.Net WebAPI and KnockoutJs as the front end. I have created the controller methods that listen...
(1) odpowiedzi
2017-03-22 21:03 .NET Web API WebHook won't accept XML »
Via Postman I am receiving the the following response: The WebHook request must contain an entity body formatted as JSON With the help of some onli...
(0) odpowiedzi
2017-03-22 14:03 Returning Sitecore Media Item from WebAPI call »
I have the following code. I have verified that the GetMediaItemByID is returning the expected media item, and the mime type is "application/pdf". How...
(1) odpowiedzi
2017-03-22 06:03 Registering Generic Interfaces and classes with Autofac »
My current Autofac config is working to resolve my ApiControllers in a WebApi. Where I'm struggling is, I'm attempting to create a 'BaseApiController...
(2) odpowiedzi
2017-03-21 22:03 How to slow down too many requests in web api instead of returning 429? »
We have an API that is an interface to a huge database. We sell the access to it as a service, and our clients are then able to get the data. However...
(0) odpowiedzi
2017-03-21 15:03 Byte array and JSON in [FromBody] »
I am trying pass an object which consists of different data type. I am always getting null value for orderDetails in Web API. However if do this, p...
(1) odpowiedzi
2017-03-21 12:03 How to pass UlImage as Base64 String to Asp.Net Web Api »
I have following code for iOS 10 Swift 3 if let pic = info[UIImagePickerControllerOriginalImage] as? UIImage { let sss = UIImagePNGRepresentation...
(1) odpowiedzi
2017-03-20 19:03 Documenting custom error codes from ASP.NET Web API »
Are there any best practices for documenting possible error codes returned from a Web API call? I'm referring to custom logic errors as opposed to sta...
(2) odpowiedzi
2017-03-20 18:03 WebApi Routing causes 404 (Not Found) response »
So, this is a simple one. I have done this in the past. But, it seems that I am missing something. WebApiConfig.cs public static void Register(HttpC...
(4) odpowiedzi
2017-03-20 14:03 Translate OData query to DataContract model class »
I have an n-tier application. I have decoupled models between my internal types in backend and the ones that I'm exposing in my webApi publicly for th...
(1) odpowiedzi
2017-03-19 21:03 Using Macbook touchpad (or others) for multi touch gestures in desktop browser »
I've looked around a bit but couldn't find a conclusive answer. Is it possible to detect multi touch gestures and events from a Macbook touchpad or ot...
(1) odpowiedzi