ActiveSync-/Exchange-Server
hello,i want to provide my application-data as calendar-events to mobile devices. the mobile devices should use the standard-calendar and add my application just like a new exchange-account.therefor i...
View ArticleWeb Api 2 compatibility between VS2013 and VS2012
Hello,I have a Web Api 2 OData SPA application I would like to work on both my home PC with VS2013 and my Surface PRO where I was able to install only VS2012 since the latest version required more...
View ArticleShould I put 100 routes or methods in 1 controller?
I'm coming from WCF where I'd put about 100 methods or contracts into 1 interface/file. I'd personally like to have 1 large file than 100 small files.Is this frowned upon with WebAPI? I guess i can...
View Articleswagger.Net in OWIN hosting
Query : How we can include the Swagger configuration in OWIN host.Is it possible to include the SwaggerActionFilter, IDocumentationProvider and "api/docs/{controller}" route to the HTTPConfiguration?It...
View Articleuse HttpClient, WebRequestHandler with Net 4.0 causing deadlock?
When using HttpClient with .net 4.0, I am sometimes seeing task canceled exception when accessing the Task.Result property . See the sample code below. I have seen threads regarding deadlock on...
View ArticleDeSerialization using Newtonsoft.Json - Assigning Default Values to Nulls...
DeSerialization using Newtonsoft.Json - Assigning Default Values to Nulls Parameters Class Structure public class HotelRoomResponse { public string rateCode { get; set; } public string rateDescription...
View Articleweb api is calling MutableObjectModelBinder's methods even it is removed from...
I am new to Web Api.I have created a Child class from public class DIMutableObjectModelBinder : MutableObjectModelBinderand register this in App_Start in global config:...
View ArticleHelp in designing Web API controller
In existing LOB app, I added new Web API project. Because of existing layers in app (Domain objects,DAL-ADO.NET-DataReader, BLL), I decided to use the Web API by holding the existing logic.First...
View ArticleDownload of Excel file from SharePoint library is failing when tried over...
I have created a web api controller to download the excel file from the SharePoint library. The download of Excel file from SP library works fine when debugging the controller from VS using the inbuilt...
View ArticleHow to use Ninject with authorize filter?
Dear all, I have setup my Ninject using the following link below:http://www.peterprovost.org/blog/2012/06/19/adding-ninject-to-web-api/public static class NinjectWebCommon { private static readonly...
View ArticleHTTP Web Request SSL Secure Channel exception
Hi,Currently i am working on posting Xml (HTTP POST), invoke certificate with password, below are my code:-string postXml = Xml Stringstring certificate_Path = "C:\\mycert\cert.crt";string...
View ArticleIs it possible to upload binary file by using HTTPClient associate with WP8?
Hi,Is it possible to upload binary file by using HTTPClient associate with WP8?
View ArticleASP.NET MVC Web API two way mutual authentication
Is there a way I can send a certificate back to the client without using HTTPS on IIS? Is this possible? anyway we can accomplish this as in WCF.Here is the sequence of events:Client -> ServerClient...
View ArticleResult with Json
Hi, I need help in this case.I have a link in web that return this value in Json:{"result":["Teste"]}In this case the result is a String class. How can I get this value ("Teste") in my application? Do...
View ArticleFormURLEncoded media type formatter not working for complex type
Hello,I have the following ComplexType which I have defined on the PUT action for my controller as follows: [DataContract(Namespace = "http://schemas.abc.com/formurl", Name = "ComplexData")]...
View ArticleEntityState.Modified updates full row and throws exception if a value for a...
Hi allIn the PUT method(Users) when i try to update a user it throws an exception "Validation failed for one or more entities. See 'EntityValidationErrors' property for more details."This happens if i...
View Articleweb request using httputhentication credential
hii am new to vb.net have an experience in c#now my problem is this in vb.net i want to make web request on one url which use httpauthentication module and return json result I have used all of simple...
View ArticleDo I need to use Web api when doing CRUD operations in my MVC Project in my...
I have a latest news website on my homepage and it will be changed once there is a new item on my news table on my sql database, When my admin side do CRUD on the news table is it okay if i just CRUD...
View ArticleWeb Api Iqnore 1 property for certain method
Hi Guys,I have this line of codepublic void Create(AccountModel model)in AccountModel it's having public class AccountModel { public int Id { get; set; } public string Username { get; set; } public...
View Article500 Server Error when trying to hit api works fine on browser
Hello I have an api which authenticates the user login . Now when I hit this rest service in my browser it displays the result but when I try to do this using my code it gives in 500 error. Please help...
View Article