Questions tagged as 'asp.net-web-api'

1
answer

Windows service sharing information with a Rest

Is it possible for a Windows Service to exchange information with a Web Service Rest? If so, is this a good practice or not? Why the question? I just have to do the following. When a flag in the database is changed from 0 to 1, it should trigger...
asked by 05.10.2017 / 23:57
1
answer

Error while executing Migrations

Friends, I have two DeliveryFee and City entities, where DeliveryFee has a City FK, when I went to remove the relationship between the two and I managed the Migration it returned the following error.    'FK_dbo.DeliveryFees_dbo.Cities_Cities_...
asked by 02.10.2017 / 19:58
0
answers

Send form with file using ajax web api entity framework

I'm trying to send a file along with the form to the bank, but when I send it it returns the error 400 bad request, I do not understand why. CurriculosController // POST: api/Curriculos [ResponseType(typeof(Curriculos))] publi...
asked by 13.10.2017 / 03:09
1
answer

Uploading files (images) in ASP.net does not send the image

I can not send images (banners) in my asp.net application My controller: [HttpPost] [ValidateAntiForgeryToken] [ValidateInput(false)] public ActionResult Save([Bind(Include = "BannerId,DatHorLan,Tit,Atv")] Banner banner)...
asked by 02.10.2017 / 03:07
1
answer

Firebird with restfull service and web api in C #

Hello, within a project I came across the following situation, I need to replicate information from a Firebird Desktop db to a db SQL Server Web, as both architectures do not talk to each other, the solution found is an api web application and wo...
asked by 19.09.2017 / 03:04
2
answers

Service to get a change in the bank

I need the following. How do I make a service auto start whenever the bank flag changes from 0 to 1? I have a field in a table in the DB (Sql Server), that every time the seller requests a discount, the flag (FlagLiberacao byte) changes from 0 t...
asked by 28.09.2017 / 13:31
2
answers

Service does not execute controller method

This message I get in the browser or postman    "Message": "No HTTP resources were found matching the   Request URI ' link '. ",       "MessageDetail": "No action was found in the Items Controller that matches the request." The problem is...
asked by 06.09.2017 / 21:03
0
answers

Problems with the .NET Framework version

I have an ASP.Net MVC 5 application and WebApi, in .NET version 4.5.2 and post them to my FTP server I get the following error (image at the end of the post) And asking the company's technical support, they answered the following:    Start...
asked by 18.08.2017 / 20:48
1
answer

How to use POST in a json for an Http server

I was wondering how can I do a POST from 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;...
asked by 24.08.2017 / 12:10
0
answers

How to capture the value of the body (stream) of a request without deleting it?

I am trying to capture the body of a request in an authorization class (AuthorizationHandler), however because this body is a Stream, after reading its contents the next post request can not be executed because the stream has already been read a...
asked by 24.07.2017 / 15:47