Data dodania Pytanie
2017-03-07 05:03 How can I upload a local DB to Windows Azure? »
I develop a WebApi using a LocalDB, but I want to deploy it to Azure. I found out that you cant use a LocalDB, but you can use a SQL Server Compact. ...
(2) odpowiedzi
2017-03-06 16:03 Cannot reuse an 'ApiController' instance - Unity DI »
I followed this tutorial to use Unity dependency injection in WebAPI. To avoid registering each type seperatly I used this setup _container.Register...
(1) odpowiedzi
2017-03-06 11:03 Windows authentication on Angular + Web Api »
I am developing web application using angularJS and web api. I have hosted two separate projects on IIS. The URL for AngularJS is 'http://10.36.217.16...
(0) odpowiedzi
2017-03-06 09:03 How to refresh datatabel using angularjs mvc c#? »
I am create one small demo for show users list.for that show list used datatabel with angularjs. my listing show very well first time.but i want to cr...
(1) odpowiedzi
2017-03-05 23:03 Convert var to class object in C# »
I wish to get response from my ASP.NET web API which responds with an object type Product. However when I try to get the response with Postman, it a...
(2) odpowiedzi
2017-03-05 19:03 Sequence contains no elements in OAuth context »
I've got a Asp .Net WebAPI project with OAuth. Sometimes I get an InvalidOperationException when I initialize my authentication context: context.Data...
(0) odpowiedzi
2017-03-05 11:03 Cross domain http request from arduino »
I am working with a project in which I have to send data from arduino using http post request to my web rest api. I know web browsers do not allow cro...
(1) odpowiedzi
2017-03-04 12:03 Angular ng-repeat refresh from WebApi2 response.data »
I have created an angular function where a get data from from a WebApi. This function get data in json format with an $http.get call. Then I receiv...
(1) odpowiedzi
2017-03-04 08:03 Return a specific response from the root of an ASP.NET Core app »
I have created an ASP.NET Core app with some controllers which are working fine. The routing system is structured like https://something.com/api/cont...
(1) odpowiedzi
2017-03-04 01:03 WCF or Web API for windows form application »
I'm about to create a Windows Form Application in C# that a customer requested and I need that to be distributed so no direct call to DB. So I need to...
(0) odpowiedzi
2017-03-03 22:03 Filtering a double-nested collection in odata »
I have a collection of Projects. Projects can have 0-many Resources. Resources can have 0-many Forecasts. Forecasts have 2 DateTime properties: StartD...
(1) odpowiedzi
2017-03-03 10:03 How to handle null Model on all controllers aspnet core c# »
I have lots of models setup for my web api, none of which have any attributes against them. Here is a simple controller example public async Task&lt...
(2) odpowiedzi
2017-03-03 10:03 Visualstudio generated Webservice throws exception (no code written yet) »
A new, empty Visualstudio project, with only auto-generated code, throws an exception, when trying to call the webservice, from that webservices own d...
(1) odpowiedzi
2017-03-02 15:03 Change the root path ASP WebApi »
My angular project is in the app folder, so that I refer to it I have to be addressed to http://localhost:45485/app, but I want to remove app from thi...
(1) odpowiedzi
2017-03-02 15:03 How to use MVC route in ASP.NET WebAPI project »
I have a web API and i want to add a few asp.net pages to manage aspects of the API. In the WebApiConfig.cs file i have a couple of routes, with the...
(1) odpowiedzi
2017-03-02 13:03 Wrapping a non async-method (which does web calls) into async »
I know you should only use async for stuff which is not "CPU-intensive", e.g. file writes, web calls etc. and therefore I also know it doesn't makes ...
(2) odpowiedzi
2017-03-01 22:03 Use OAuth2 for authentication against Azure AD to call WebAPI »
I am trying to create a new web application that will be hosted in AWS. This application needs to authenticate users from our Azure Active Directory ...
(2) odpowiedzi
2017-03-01 14:03 Dependency Injection broken after adding Owin, no parameterless constructor defined for this object »
I have a problem regarding dependency injection in my project, it was working fine before implementing Owin. After I added Owin and made a startup cla...
(2) odpowiedzi
2017-03-01 11:03 When I need to use POST method with multiple parameters instead of separate model? »
Could you tell me when I need to use multiple parameters instead of separate model in my WebApi/MVC application? I have an action which takes a few ...
(1) odpowiedzi
2017-02-28 20:02 ASP.NET WebAPI 2 + Entity Framework Best Practice for connection caching »
I'm trying to figure out the best way to perform operations on my platform with WebAPI and Entity Framework. Right now I'm creating a new connection ...
(1) odpowiedzi
2017-02-28 18:02 Best way to update data after an API call gets a record »
I am currently working on an API where a record should only be allowed to be pulled once. It's basically a queue where once a client pulls the record,...
(2) odpowiedzi
2017-02-28 10:02 c# asp.net Web API Owin Json Token »
Hey I just programmed a token based authentication following this tutorial. So everything goes fine as long I send my POST request as x-www-form-urlen...
(1) odpowiedzi
2017-02-27 21:02 Excel PowerQuery / C# WebAPI OData, Retrieving old Service Reference »
Having some strange behavior when trying to connect Excel Power Query to my OData web service. When I started out building my web service my underlyi...
(0) odpowiedzi
2017-02-27 11:02 Flattening object of arrays to one array in JavaScript? »
I'm working on that scenario: I'm calling an API, based on item selected from drop-down list, the URL changes, all the APIs has the same signature o...
(0) odpowiedzi
2017-02-27 09:02 How to get the Windows user's login time? »
Is there a way in C# to get the time when the current user logged in? A command called quser in command prompt will list some basic information about...
(3) odpowiedzi
2017-02-26 18:02 Return custom XML response from IHttpActionResult »
I have following code in my controller [HttpGet] public IHttpActionResult Get_User_Info(long id) { user u = new user(); ...
(0) odpowiedzi
2017-02-26 06:02 Get method not working in web api »
Hi I am developing one application in web api2 and angularjs. I have some routing problems in accessing urls from angularjs. I am trying to access be...
(4) odpowiedzi
2017-02-26 05:02 Changing database at runtime with MVC WebApi 2 »
I want to change the connection to a database at runtime in a REST Api. I want to put a variable of the request and let the Api decide which connectio...
(2) odpowiedzi
2017-02-25 22:02 Attribute Based Routing VS Convention Based Routing - Best Practice for ASP.net Core RESTful APIs »
I'm an experienced .NET developer, making my first steps in .NET Core in the passed few days, more specific in building RESTful APIs using ASP.net Cor...
(1) odpowiedzi
2017-02-25 11:02 Implementing Cache manager using Dot Net core »
I am new to DotNet Core. I have created a WEB API using .NEt Core. I have a requirement to implement cache manager in this API. I have a set of record...
(1) odpowiedzi
2017-02-25 06:02 How to call three get methods in one controller? »
Hi I am developing webapi application and I have three GET methods in one controller. I am able to call 2 methods but third one I am not able to call....
(2) odpowiedzi
2017-02-24 18:02 How can I access Kentico content from Web API? »
Using Kentico's documentation I've set up a new project in my Kentico solution with the following: Microsoft.AspNet.WebApi from Nuget Added [assembl...
(1) odpowiedzi
2017-02-24 16:02 Angular 2 http request is not hitting web api get method with a string parameter overload »
My problem is that the first Get method is called from this http request: http://localhost:56690/api/testelements/?name=aeg wouldn't I expect my this...
(1) odpowiedzi
2017-02-24 08:02 using generics with web api controllers »
I have a controller that has 3 methods with the same method body. The only difference is the method type. I have a generic type interface that I'm in...
(1) odpowiedzi
2017-02-23 20:02 Getting 404 when trying to hit the WebAPI controller method »
I have created a project using ASP.NET Core Web Application (.NET Framework). My project structure: My values controller is inherited from an MVC c...
(2) odpowiedzi