complex data type model - not capturing correct data from client to...
Hi,I have this model: public class PartyDTO { public int? PartyId { get; set; } public List<AddressEntryDTO> AddressList { get; set; } public List<PartyAliasDTO>...
View ArticleDynamic expiration time of OAuth tokens with OWIN
I am developing a Web API and I am implementing security with OWIN, OAuth, the issue is that I have three different groups of users to which I need to give different expiration times, which is...
View ArticleSoap request read nodes and read single node
I have asmx file with wsdl?.i want to read all nodes and also a particular node.it looks like s:envelop name=getname. How to read in asp.net.
View ArticleLogging in Webapi
Hello all,Want to implement logging feature for Webapi. I am concerned about performance oriented. Want to know if the below few thingsBest practice for Webapi logging(including event log and Async...
View ArticleWebAPI - With or Without MVC
Hello There,While we create webapi there are few options in VS related to choosing webapi without or with mvc. Can someone explain what if I dont choose MVC or if I want to have models and logic...
View ArticleToken related Question
Hello,i am buiding asp.nett webapi with oauth2 (bearer token). I have question about the token generation and server capasity. Assume we have 150*1000 active users in our system. please tell me the...
View ArticleFile Upload controller method using MultipartFormDataStreamProvider size limit
Hi All,I'm attempting to create a WebAPI2 Controller method that allows clients to upload files to the server. Based on multiple tutorials, I have successfully written the method using...
View ArticleDoes WebAPI handle EF objects?
We're trying to move some of our processes and services to Azure. I've been using WebAPI for the middle-tier and using POCO classes to pass data back and forth. However, my colleagues would rather use...
View ArticleC# WebRequest - Could not create SSL/TLS secure channel
Below curl request working fine but when i convert this request in c# web request then i got error.curl request working fine:curl --key private.pem --cert public.crt --data...
View ArticleGetting 500 Internal server error for my POST method in WEB API Continuously
In my Web API, I am adding new data using POST method.By mistake, If some primary key violation or some other error happens, it gives 500 Internal server error. which is ok.But, after that, even if I...
View ArticleWeb API how keep object from a library alive between calls
I have a Wince app that communicates with a service that does it's own business logic with a DB.I want to retain the current code from my application and implement in Web Api project.I created...
View ArticleAutomapper => unmapped members
Hi,I am using Automapper 7.1. I'm trying to map entities to DTOs. I'm running into the error below:Unmapped members were found. Review the types and members below. Add a custom mapping expression,...
View ArticleASP.NET Web API - Using CORS - cannot get webapi from the original site to...
Good Day EveryoneI have successfully created a 2 test site with CORS, but both has no authentication, then after that I create 2 sites for my project, one has a authentication (custom authentication,...
View Article401, Unauthorized, WWW-Authenticate →Bearer error="invalid_token",...
Hi -I am calling my Web Api from a console app and always get the unauthorized error.<div>string aadInstance = "https://login.windows.net/common/oauth2/authorize";</div> <div>...
View Articleweb api, self host windows authentication
Hi,I have been trying to find a solution to this. I have a self hosted web api in a console application. When I run it I keep getting unauthorised errors. I have authorised attribute on the...
View ArticleRead response after uploading attachment using web API c# console App
I am trying to read response after uploading an attachment using web API c#. Getting below error:no mediaTypeFormatter is available to read an object of type 'String' from content with media type...
View ArticleAutomappers - Is it paid package? or free to use
Hello - I have a quick question - Is auto-mapper a paid package? Because I did not find any purchase options if any there to check if its premium.Reason being planning to use it project but later if...
View ArticleHow to return web service with success, failure method
Hi, I have to create a android app. I am creating a web service in .asmx, it will return in json format.["message":"Login...
View ArticleOperation could destabilize the runtime.
I just deployed a webapi application to godaddy hosting. I was greeted with many errors. I managed to get past them by searching ffor their solutions and I think this is the final Boss. Can anyone tell...
View ArticleApart from Owin, anything else do exist for authentication work as middle ware?
I have a problem with Owin. It's old and not much appreciated anymore. Moreover, it's really not work able in ISS when combined with .NET Remoting.I really need to know Is there any other security...
View Article