How can i transfer files from .Net to Unix Server using HTTPS
Hi. I have a scenario where my .net application generates some files which we are transferring to unix server with ftp protocol. But now I want to replace the FTP protocol with HTTPS without using any...
View ArticleWeb Api throwing Exception on async method
I have Web API method that calls another method marked with async used to update a database (using EF 6). I do not need to wait on the db method to complete (its fire and forget), hence I do not...
View ArticleAdding JSONP support through nuget
I am having a problem adding JSONP support to a simple Web.API project. What happens is this...First I created a new Web.API MVC 4 project in VS 2012. I run it and it works returning those default...
View ArticleVerb hints in Action name do not work
I created an Empyt Web Project and trying to build a Web API service. According to this link:To find the action, Web API looks at the HTTP method, and then looks for an action whose name begins with...
View Articlehow to use authorization and authentication in wcf restful application?
how we know that browser header token check in wcf service side?
View ArticleWebApi Routing Issue for multiple Functions
Hi, would really appreciate someone's help on this little issue I have. We have a new project to provide a mobile site running alongside our existing desktop site. The intention was to redevelop our...
View ArticleWhat is HyperMedia Links
Hello:Please could someone give information about HyperMedia Links. How to use it.Looks like my API service already returns a hypermedia link.But I am not sure how to use it.Please help.Thanks
View Articlehow to upload a form with both a image and text fields to sql
my goal is for a user to be able to upload a image with some data fields. so far i can only get one or the other to work. the code below is what enables me to upload a image to my sql database as a...
View Articleasp.net web api: How to create Asp.net Web API to accept xml file as http...
I need to implement web api in asp.net web api which will accept xml file as http post request with parameters. Than i need to download that file and save. I need toprase http parameters which will...
View ArticleDeserialization problem with Web API
Hi there,I have a cloud-based object storage using Web API. To create a new user the following POST method is available through an API Controller:public User Post(User user) { if (user != null...
View Article404-Not found error in IIs deployment - Thinktecture.IdentityModel
Hi , I have referred the Thinktecture.IdentityModel.dll to enabling CORS in IIS deployment. I have include the configuration as given in the following...
View ArticleWeb API bearer token authentication and Roles
I am using bearer token authentication on my Web API endpoints.(As in http://www.asp.net/vnext/overview/authentication/individual-accounts-in-aspnet-web-api)One question I have is should it populate...
View ArticleOWIN/Katana WebAPI 2 routing broken under CA SiteMinder?
I'm not sure if this is the appropriate forum for this question, but I've got a WebAPI 2 app built on top of the OWIN/Katana stack, hosted in IIS 7.5, and I can't seem to get the WebAPI routing to work...
View ArticleBind Web API data from Google Analytics API to SharePoint 2010
I'm still new to Web API but I have created a few of them in a production environment. Currently, I am consuming the Google Analytics API in MVC. I want to eitherA) Access the Google Analytics API...
View ArticleUnable to call POST method
Hello, I'm starting to test Web API but I am unable to call the POST method from a test client. The controller's method is the following:HttpResponseMessagePost([FromBody]string value)The problem is...
View Articlehow to debug 401 error for basic authentication code?
I am writing to seek little help, in how can i go about debugging the following codes, to determine, where is my code going wrong. i cannot get the roles parameter to work in values class, as when i...
View ArticleNon-Rewindable Stream
why request body is a non-rewindable stream i.e we cant read the content more than once
View ArticleDifference between Ok(T content) and Json(T content)?
According to the documentation Json(T) is sending a 200 response containing my data in the response body.Using Ok(T) will do the same.If i use the Json-Mehtod i get a...
View ArticleUnable to read file with UseBufferedInputStream set to false
I am developing a file upload/download api.Since with huge files I was facing out of memory issues, I enabled BufferlessInputStreamOption as suggested in the below...
View Articletextarea in Web API Help Page
I have a Web API method, and one of the parameters is (typically) a large string. (the member in the service model is a string). For eaxample:public class MyRequest { public string Value1 { get; set;...
View Article