500 Error Web API IIS
in my IIS local and hosted in aws got this error when I publish my web API app got this errorasp.net
View ArticleHow to modify results i get from WEBAPI2 in postman ?
hi all.i am very new to restful services and web api. i need a little help.this is the code im working with :using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace...
View ArticleHow to explain Web API is rest
when we search google what is rest then big theory comes but how could i explain point wise that web api is rest.please guide me.
View ArticleStatusCode: 400, ReasonPhrase: 'Bad Request'
Dear All, I had a working code for saving data from sales force to hubspot.try { var baseAddress = new Uri(ConfigurationManager.AppSettings["Hubspotbaseaddress"]); using (var httpClient =...
View ArticleC# Load html from url : i receive raw HTML without filled table instead of...
I try to load html from url. I try to do webscraping.Problem: http://5.51.127.237:50200/Watcher/cryptowatcher - try to do Save As and look for "currencyAlerts"table in the html file. It has only one...
View ArticleHow to hide the directories in Web API service url while browsing
Hi Everyone,while browsing the API Service url, it's showing all the files, folder and config files. How to not display those directories while browsing the url. Instead of getting directories, I need...
View ArticleHow to display ICollection in Postman ?
This is the code im working with . The MENUCATEGORY has a list of ITEMS. How to show that result on Postman , than when i write this url http://localhost:49477/api/menucategories1/coffee (for...
View ArticleCustom XML Generation through Web API
Dear Team, I wanted to create a complex XML using WebAPI. I had defined the classes (models) and fetched the required data from the database using ado.net to produce the xml . The xml should be...
View ArticleGetting JsonSerializationException
<div>Hello,</div> <div> </div> <div>I'm having an issue trying to convert an object to json. The error is a Newtonsoft.Json.JsonSerializationException:</div>...
View Articleresponse sending back NullReferenceException
<div>Hello,</div> <div> </div> <div>I'm having an issue returning data from a web API call.</div> <div> </div> <div>The web API function looks like...
View ArticleRetrieve an image file from db as an array of bytes through WEB API
Hi, I have the following API:public HttpResponseMessage GetExpediente() { db.Configuration.ProxyCreationEnabled = false; //db.Configuration.LazyLoadingEnabled = true;...
View ArticlePublish web api project
Hi, I am currently looking at all the different options to programmatically publish asp.net web api to azure. we have 5 different environments DEV, TEST, UAT, PrePROD, PROD. As of now I manually...
View ArticleRetrieve an array of bytes from a controller
Hi, I have the following API:public class ExpedientesController : ApiController { private Ejercicio2Entities db = new Ejercicio2Entities(); // GET: api/Expedientes public...
View ArticleHow to read Icollection in webapi2/ one to many relationship?
Hi to all . I am very very new to webapi2 so i need a little help.MenuCategory has a public virtual ICollection Items ,and Items have a MenuCategoryID as foreign key, and in mvc view i can read them...
View ArticleTracking WebAPI per session
I have a webapi and the auth is token based. The api is using .net core 2.0 and thinking of using idenityserver4 for the token auth.What we want to do is for each client that authenticates using their...
View ArticlePostman - Multiple actions were found that match the request in Web Api
I have this webapi2 controller public class HomesController : ApiController , and i have created a customized action like this :[Route("api/Homes/GetDetails")] [HttpGet] public IHttpActionResult...
View ArticleExport Data Table to CSV File
I am trying to create multiple CSV files from multiple tables in SQL Server DB back-end.The files are getting created but on the server and I do not get a Save As dialog in the browser. What do I have...
View ArticleHow to explain Web API is rest
when we search google what is rest then big theory comes but how could i explain point wise that web api is rest.please guide me.
View ArticleNeed some help with api usage
Hi Is there some document or eeading material that can explain why api and rest api was developed. Why were they required and what limitations were faced prior to them. I would like to understand more...
View ArticleDapper result to multiple class
Hi, I have class something similar to below, one parent has one child class collection (List Property) and that child collection has my single class object,list and string properties with in it.I am...
View Article