how to assign a name to an action method within the same controller
The highlighted area shows how all my controller action methods are set up, now I need to add a name so it can be referenced from within the same controller. Examples I have seen modify [HttpGet] but...
View ArticleHTTP PUT calls GET action method - syntax issues
My Put action method is a "facade" between svcGridItem, and a few individual Entitites of which I am only showing Service.The red highlighted section is not doing what I want it to do, as svc is not a...
View ArticleStatus code 403 before Deployment Project on web host
Hello everyone, I have come to ask for help in an issue that I am researching and I have not found solutions for more than a month. I have anASP.NET WEB API project with the latest versions and when I...
View ArticleDesign a project architecture
I hope this question fits here in this post. I have a relational database for Personnel only, a second relational database for Financial Operations only and another relational database for Logistics...
View ArticleWEB API's - from the (new) ground up
Greetings gurus. I am a decades-long experienced developer with all kinds of stuff including some .Net/C# maintenance (moderate), some light web dev, lots of sql/db dev, and generally familiar with the...
View ArticleRetry Logic
Hello guys,Is there any simple proven way to implement retry logic when calling a third-party web service? I would be glad if you can guide me.Thanks in advance.
View Articleconsuming a webservice
Hi I have a hotel webservice that I need to consume. I have added a web reference to the service.This is my code but it is not working:string @username = "xxxxxxxxxxx";string @password = "xxxxxxxx";int...
View Articlehow to generate API document for vb soap web service
i am now using soap web service and it will integrate with restful api, how can i generate a input /output document using generation tool for open API developer usage?
View Articleweb api CORS
Hello, I wrote a web api application in visual studio. It works in the local area without any problem. I also made the cors settings, but when I put it on the hosting I rented, I get the cors error...
View ArticleDELETE/PUT verbs result in 404 Not Found in WebAPI, only when running locally
I know this is a commonly addressed issue, and I've done everything that many posts here on SO suggest. When I try to delete a record using WebAPI (version 2) from my MVC5 front end running under local...
View Articleerror when create new API controller I get error CS0234: The type or...
I work on visual studio 2017 asp.net core 2.2 when create new api controller I get Error There was an error running the template...
View ArticleWindow c# WebApi call issue
I have a test class for an asp.net WebService asmx function. When I attempt to make the call I get:"Method System.Net.Http.CloneableExtensions.Clone: type argument...
View ArticleHttp Put with Collection webapi core
I have the below endpoint in my application which takes product Id as a parameter and update and deletes the individual records. How can use HTTP PUT and Httpdelete with the collection?Current...
View ArticleHow to get the calling web API end point
hi guyshow do I get the endpoint of the calling url and assign it to a parameter, here is my code [Route("api/[controller]")] [ApiController] public class ResultsController : ControllerBase { public...
View Articleweb api 2 The 'DelegatingHandler' list is invalid because the property...
Although there is no problem in local in the web API 2 I wrote, I cannot access the image files in the remote server that I have defined under the api....
View ArticleSlow performance of AutoMapper in WebAPI
Hi All, I am using AutoMapper in my WebaPI application to map the database objects to business objects like below:var products = statusId == null ?...
View ArticleWeb API support vietnam ( unicode ) characters
Hi, my web api replaces some characters in vietnam with decoded characters "\u001e" , for example How to handle this characters, this is happening at web api level or at browser side ?
View ArticleException The target file is a directory, not a file. on file.copy
I work on asp.net core 3.1 web api I get exception error as below :Exception The target file is a directory, not a file. on file.copythis lines generated exceptionSystem.IO.File.Copy(OutputfilePath,...
View ArticleGet only few fields from JSON result
Below is my code public class MyImage { public string ImageID { get; set; } public string ImageFullName { get; set; } public string ImageURL { get; set; } public string ImageDimensions { get; set; } }...
View Articlemodel binding in AspNet Core WebApi?
I am working on web API .Net core 3.0. HTTP Post Model binding is partially working. It does not bind departments.Using postman, I am passing below JSON data.JSON Data:[ {"refid":...
View Article