DocumentDB AspNet Identity
Has anyone had any experience using NuGet DocumentDB.AspNet.Identity (http://www.nuget.org/packages/DocumentDB.AspNet.Identity)?Is there any other nuget package available for this job? I would like to...
View ArticleWebApi Basic Authentication not authenticating second time after 401 Challenge
I’ve implemented Basic Authentication via 2 different methods (AuthorizeAttribute -...
View ArticleDeserialise JSon Back to vb.net (.net2)
My Api host requires json Post with two parameters: key (as string) and model_code (as string). I Have done this to serialise my vb objects: CLASS:------------------------------------- Imports...
View ArticleSecurity Token...
Hello,I have a question about a security token...Well..this could be a general question in any web api I think..Anyway,...I have a custom security token...When a client requests a token, the web api...
View ArticleHow to access third party api?
Hi, i am building mvc application in which i need to access third party web api's. For accessing that api it requires username and apikey. I have their correct username and apikey. For accessing that...
View ArticleReceived an unexpected EOF or 0 bytes from the transport stream
I am calling PayTM API from a window application using asp.net 3.5. This is my calling codeHttpWebRequest myWebRequest = null; string postString = ReturnRequestUrl(); Uri DemorUri = new...
View ArticleCache Implementation in Odata Web API
I want to keep some data in the cache in the odata web api. I am using MemoryCache.Default and kept the data in cache with some keys. but it seems its not working properly. I given the expiration time...
View ArticleWeb Api 2 RegesterExternal returning Internal Server Error
I am having trouble implementing external logins in Web Api 2.I have tried to implement this using the default templates in VS 2013 Community and VS 2015 CTP. The only change I make is uncomment the...
View ArticleHow can I return database results in Json Format
I am new to Web Api but am learning, I was wondering how can I get results back from the database in Json format? I have been trying to solve this for some time and am getting no luck. Here is my code...
View ArticleSystem.Net.Http is missing on Deployment Server
I created a MVC4 Web API on dev server in VS2010 using .Net Framework 4.0 which run fine on localhost. For next stage deployment I installed AspNetMVC4Setup.exe on PreStage Server but over there some...
View ArticleHow to receive generic request payload from client as json or xml in get or...
Hi,I have a web api action where I have to receive data in payload and not from urldata type can be simple json object, I don't want to typecast it. it can be any json or xml object send in payload for...
View ArticleUpdate using API 2
HiI followed tutorial here http://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/part-1It is very good.1) Can you please guide me to implement the Update & Delete operation?...
View Articlecreate json wcf web service
Hello guys. i wanted to create a json web service. so i tried to use this code: [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json)] DisCalResult[]...
View ArticleWeb Api async framework design?
I want to design a API framework that is async.where there is a call from Queue to an Web-api(1),that Web-api calls another Web-API(2) and the second Web-Api stores it into SQL database. This all...
View ArticleWeb API 2 OAuth - GetExternalLoginInfoAsync always return null
Hi, I have VS2013 Update 2 - Web API 2 OAuth problem. follow step:1. Visual Studio 2013 is Update 2, New Web API Project, Click Change Authentication, Select Individual User Accounts.2. In...
View ArticleASP.NET Web API Post and Get relational data 1:n
Hi @ all.I've a complex problem.I've a small Data Model. Head informations like User, Name and so on and a list of values.The head informations are collected from an Html form. The list of values are...
View Articleconfig web.config to use the same web service in soap and rest
Hello guys.i have a web service and i need to use it in both soap and rest ways.but i dont know how config the web.config to do that.take look at to my web config file:<?xml...
View ArticleWeb API 2 OData v4 , how to order by nested collection ?
[Table("product")] public class Product { [Key] public int id { get; set; } public List<ProductModel> models { get; set; } } [Table("product_model")] public class ProductModel { [Key] public int...
View ArticleOData $select can be (select * but xxx ? )
hi everyone,If i want to select * , but only some fields i don want to select. Have any short front to write it ? Or i must write all fields that i wanted ? something like this...
View Article