Most voted "asp.net-web-api" questions
ASP.NET Web API is a framework for building HTTP services for clients such as browsers and mobile devices. It is based on Microsoft. NET Framework and ideal choice for Restful services.
Learn more…455 questions
Sort by count of
-
1
votes1
answer215
viewsIIS Express or Owin self host (as a service)
What are the advantages/disadvantages of these two approaches. Some characteristics: Will be a server REST. The project at first will have few requests Local server (not cloud)…
-
1
votes1
answer538
viewsSeveral methods in the same Apicontroller
I am creating a web Api project and wanted to put a set of methods in the same Controllerapi. But in the methods, I pass a Json object as a parameter. And as their structure looks similar (see…
-
1
votes0
answers55
viewsjwt.io integration with web api
Has anyone managed to find documentation or managed to integrate the http://jwt.io/ with Web Api? I’m looking for a step by step or documentation and nothing...…
asp.net-web-apiasked 9 years, 2 months ago thiago.adriano26 529 -
1
votes0
answers52
viewsWebservice VB passing parameters to C#
Good morning, We have two systems, one of them is in VB and the other in C# an identity manager (which serves to unify the login, we will put more systems inside it so that there is only one login…
-
1
votes1
answer156
viewsjQuery calling an action
I am developing a web site in ASP.NET MVC that uses jquery to control some plugins like spinner, toastr and others. My question is whether I should call Action via jquery to validate the model and…
-
1
votes2
answers238
viewsHttphostconnectionexception - Android
I did in the Visual Studio Community 2013 a simple Web API to register a person and receive a person, and I’m trying to consume this service with an android app, I’m emulating the application by…
-
1
votes1
answer344
viewsNinject dependency injection for more than one web project
Hello, in an application I have a MVC web project and a Web API project, in the MVC project I already have the Ninject configured with the dependency injections and I would like to take advantage of…
-
1
votes2
answers2426
viewsHow to access Web API posted to IIS externally
I developed an ASP . NET Web Application (API) in Visual Studio 2015 and published it on IIS 6.1 to access locally. Now I need to make my machine available as a server for external access. How to do…
-
1
votes1
answer416
viewsAsync Method with Await in his Return
public async Task<IHttpActionResult> NomeMetodo([FromUri] Filtro filtro) { return await Task.Factory.StartNew(() =>Ok(_aplicacao.RetornarDados(filtro))); } I wonder why the above method…
-
1
votes1
answer86
viewsWebapi 2.0 - Apicontrollers in another Assembly do not suffer mapping if runAllManagedModulesForAllRequests="false"
I have an app Webapi2 that implements some Apicontrollers. This same application references a Assembly that implements some more. All of these controllers utilize Attribute Routing, as in the…
-
1
votes1
answer165
viewsWebapi problem when trying to Deserialize object with property of the same type (circular reference)
I’m doing some tests with WebAPI, to see how it behaves with circular reference, and found a curious case. Model [DataContract(IsReference = true)] public class Pessoa { [DataMember(EmitDefaultValue…
-
1
votes1
answer258
viewsWhat techniques can be used to authenticate in REST applications?
I’m developing an application Restful in PHP, I need to do an authentication mechanic on that system, so client applications can consume your data. What techniques can be used to authenticate…
-
1
votes0
answers36
viewsSymfony Api with Auth0
Someone can help me is that I’m having trouble implementing the Auth0 to authenticate an api I’m seeing this example https://github.com/auth0/jwt-auth-bundle/tree/master/example only that the…
-
1
votes0
answers228
viewsUsing asymmetric encryption between Xamarin PCL Client and Web Api
I have a problem creating an asymmetric encryption between my client App using Xamarin Forms (PCL) and the server (Web Api). I did it using symmetry and they asked me to modify it. I already do…
-
1
votes2
answers143
viewsHow to disable Forms Authenitcation for the Web API?
I have an Asp.Net MVC project and inside it has the Web Api, when a request sends an invalid token, Forms Authentication redirects to the login page, but I need it to only return an Http 401 error,…
c# asp.net-mvc asp.net-web-api web.config forms-authenticationasked 7 years, 9 months ago Fábio Lima 81 -
1
votes1
answer80
viewsHttpcontext.Current.Request.Islocal does not work in the Startup class
I’m trying to use HttpContext.Current.Request.IsLocal; in an application web api 2 in class Startup method Configuration(IAppBuilder app). The idea is to just upload a server hangfire if it’s in…
asp.net-web-apiasked 9 years, 3 months ago Ricardo 5,680 -
1
votes0
answers174
viewsflow to login with web api with AD users returning token per profile
We are setting up an Api for our internal systems, we enter a paradigm in the best way to create a login of users validated by AD returning token with profile being the Profile the group that the…
-
1
votes1
answer62
viewsWeb API Controller Standardization
I would like to know the following. Imagine the following URI: (1) api/orders (2) api/orders/10 (3) api/orders/10/items URI (1) and (2) I am sure they would be within a class called…
-
1
votes2
answers385
viewsWebapi - Tryupdatemodel or Updatemodel in an Apicontroller
I have the following situation, a Person class, with properties Id, Name, Birth, I want to implement a page that can update only the Person Name. My implementation should take a person by their id,…
-
1
votes1
answer1186
viewsQuery the XML URL
I’m trying to get some data from an XML-coded URL but it’s giving error. Follow the code <?php $simples = new SimpleXMLElement($xml); $xml =…
-
1
votes1
answer128
viewsProject only runs if Visual Studio is installed on the client machine
Hello. I have a project done in WPF, which uses data returned by web services to interact with the user. This system, when starting, consults the IIS to see if it is standing, if the web services…
-
1
votes1
answer27
viewsC#(SPA) template does not run
I was auditioning with the Single Page Application, using the visual studio template. Well, I created the project and did nothing, nothing at all, I just created the project and I circled and…
-
1
votes1
answer51
viewsC# API - Update
I created an API using Entity Framework, the connection is ok, however, when I update the data in the database, qlqr one of the fields, Json in the API does not show the change. How to resolve this…
-
1
votes1
answer52
viewsHow to avoid controller duplication/accountability in modern applications?
Nowadays, communication between applications, mobile and/or other devices is increasing. The . net provides the Asp.net MVC and Asp.net WebAPI (to date today, stable version). Commonly the Asp.net…
-
1
votes1
answer107
viewsEntity Framework + Fluent API + Web API?
I’m having trouble mapping the category within a product, when I list the products in the category (virtual class) comes empty, even with CategoryId filled. Product public class Product { public…
-
1
votes1
answer420
viewsProblems running/publishing WEP API on IIS10!
I want to publish my ASP.NET Web API via filesystem, but I’m having an Assembly error while running the site on IIS10. For the VS I can spin, but for the IIS I can’t. NOTE: I already have the DLL in…
visual-studio iis asp.net-web-api iis-express iis-web-deployasked 7 years, 3 months ago Guii Reguffe S 33 -
1
votes1
answer680
viewsHow to return query by a string using Webapi?
I have the following code that gives me an error: The inline Constraint resolver of type 'Defaultinlineconstrainaintresolver' was Unable to resolve the following inline Constraint: 'String'.…
-
1
votes1
answer228
viewsSignal the receipt of messages
The customer has 7 stores and a headquarters. Someone in the matrix with decision power, will keep your mobile in hand with an app. When an employee of one of the stores needs to approve a higher…
-
1
votes1
answer1346
viewsHow to use POST on a json for an Http server
I was thinking how can I post a json to an http server. The code I am using to do json is as follows: Person person= new Person(); product.FirtsName = "Ola"; product.ID = 1; product.age= 10; string…
-
1
votes0
answers21
viewsError calling route Debugger
I installed Route Debugger via Nuget: Install-Package Webapiroutedebugger. When I run my app, and I call the Bugger a route(http://localhost:9078/Rd), this way, explodes this error: But the…
-
1
votes1
answer51
viewsExit from my service does not match my dto
On my way out of service to the Dadositens camp, I have this: <DadosItens> Qtde 3 Custo 46,66Unitario 68,58 Margem 0Ult.Cond 30/01/2017 C. Diario 46,66 Total 205,73 </DadosItens> Turns…
-
1
votes1
answer35
viewsRest API does not receive anything from another App other than my own
You can prevent another application from sending or receiving information from my REST?
-
1
votes1
answer305
viewsDevelop an MVC project with Web API
Someone asks me to develop an MVC application with various technological elements such as Angular, Bootstrap, Entity and so on. I then create a Web API project, can I guarantee to this person that…
-
1
votes1
answer577
viewsWhat is the best solution for a web login api in Xamarin Forms?
i have the following challenge to solve, I am developing an app using xamarin forms, this application will have to communicate with a website developed in PHP to consume your data, for all functions…
-
1
votes1
answer2400
viewsWebapi 2 Route Configuration web form application
About 6 months ago I am entering the MVC world, before I used a lot of Webforms and I confess that I have difficulties understanding how to configure the routes for a ApiController, from what I…
-
1
votes0
answers197
viewsGenerate report through Angular for Web API C#
I’m starting the report part of my system, when making a request to generate a report in a new tab I can even link through some parameters. window.open(this.httpUtil.url('SinistroReports/' +…
-
1
votes1
answer998
viewsSend Angularjs object to Webapi C#POST
I have a form, I am trying to save the information in the SQL Server database. <html ng-app="Crm"> <body ng-controller="CrmCtrl"> <form name="novoCrmForm"> <div class="row">…
-
1
votes1
answer203
viewsObject as parameters for C#API
I have a request made in Angular for C#. However I don’t know how to receive the data in My API In C#. getWithFilters(filter: any) { let parametros: any = { razaoSocial: filter.razaoSocial, cnpj:…
-
1
votes1
answer353
viewsSave JSON file information to database
I think about the possibility of a Web system saving information from a register in a JSON file on the client’s device, which would later be sent to the BD. This will happen when the client is in an…
-
1
votes2
answers404
viewsConsuming Webapi by Angularjs
I have a POST method in Webapi, and this defined the Routeprefix of the Api, the Route of the POST method and Cors is enabled. [RoutePrefix("api/v1/crm")] [EnableCors(origins: "*", headers: "*",…
-
1
votes1
answer98
viewsNhibernate is modifying property when returning by Web Api
I have a web service api where a query to the bank is relaunched through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it is because of the…
-
1
votes0
answers39
viewsSend a blob to a webservice
Hello, it may sound like Jr. the personal question but I’ve tried searching the internet and nothing. I have the following scenario: A. NET API provided by a company to which I have to submit a…
node.js asp.net-web-api file-upload integration couchdbasked 6 years, 3 months ago Hiago Souza 5,837 -
1
votes1
answer1616
viewsCreate a Web Api that calls another Web Api
I created a Web Api here in my work to be consumed by my project Xamarin Forms. It’s working 100% and no problems... Then I was informed that actually here we use 2 web api s for security. That is,…
-
1
votes1
answer35
viewsWebapi Project - . NET
I am developing an Asp.Net Webapi application (first REST application). So far everything is ok, even because I’m in the testing phase using Postman. I believe I must complete this first stage…
-
1
votes0
answers237
viewsCode to receive file through POST
I’m making a webAPI to receive files via post. Customer will send via classic Vb with the following code: Set content = CreateObject("MSXML2.XMLHTTP.6.0") content.Open "POST", url, False…
-
1
votes1
answer237
viewsEmpty Multipart/form-data (ASPNET CORE)
I am trying to send files to my api via 'POSTMAN', but when the request arrives at the API endpoint 'Iformfile' always comes empty. POSTMAN Controller [AllowAnonymous] //utilizada apenas para teste…
-
1
votes0
answers383
viewsAngularjs $http.post taking too long
I have a web API made in php that accesses a Mysql database that has return in JSON and I am using Ionic + Angularjs to develop an App that will use this API. In my file services.js I created a…
-
1
votes1
answer830
viewsPOST is not receiving JSON
I need some help with running a POST. 'Cause when I try to call my API (http://www.afectus.com.br/api/teste) for the execution of a Post, I am unable to pass the JSON to her. Follows the API used:…
-
1
votes1
answer194
viewsReturn Json - Angularjs
I am creating an Asp.Net Web.API application and the return of service is in Json. So far so good, it happens that the main object (Companies) is returning an internal object - citiesFiliais…
-
1
votes1
answer233
viewsAsp.net HTTP Client get with query string
Developed on an Asp.net mvc I intend to implement an HTTP request that with this part of code the meteorologies present me a "list" with the parameters of the query…