What is the best way to approach this problem?
First off, I apologize if this is in the wrong section. For the project I'm working on, I'm delving into things I've never done before.The scenario:There are three computers for this problem:Database...
View ArticleThe name RunAsync does not exist in current context
Hi friendsi am following tutorial from this linkhttp://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-clienthowever when i write RunAsync().Wait(); it indicates the error as...
View ArticleRouting not working for some methods
I have a WebAPI 2 application. I am encountering a strange problem where the Route attibute does not appear to be working properly for some of my methods.Actually, it appears that the application...
View ArticleStarting a Web API Project, secured with OAuth2
Hi,I want to create a Web API 2 project in VS 2013 and use OAuth2 for security but I don't need a MVC client in there. I have seen the project templates for Web API, but these don't include OWIN. The...
View ArticleAccount/Logout Not Working
Hello, I'm exploring Identity V2 with Web API. As far as OAuth the concept of "Logout" is kind of undefined. I do need to implement a Logout somehow though. There looks like there is a Logout...
View ArticleClient Application Services with ASP.NET 4.5 Individual Accounts
Hello,I created a new WEB API project in VS 2013 and configure it to manage idenity using individual accounts. I can see that VS automatically created some controller classes that I can acess from...
View ArticleMulti key join with Web API OData
I am new to Web API Odata, while building a controller that has a join on multiple keys, it doesn't seem to produce correct Sql Statement.i must mention that using Entity Framework alone in a Console...
View ArticleInject connectionstring from app.config or read it from a BaseDataProvider class
Hello:For example, in a project I currently work on I have a component that has db access and I have reused it in several contexts.In some of them it uses a standard connection string coming from the...
View ArticleWeb API
Hi, Gentleman,Can we test the web api service through the development server?Example: I've created a web api service inside my application and consumeing that service through the jquery, when I'm...
View ArticleWeb API & WebForms
There is a nice & easy article about using Web API in asp.net web forms (here). My project is in asp.net 4.0 web forms and I know I still can use Web API in it. But I am confused because I already...
View ArticleRoute problem with Sub domain implementation
I have used this Web API 2 service and having a problem with its routing together with sub domains.I'm planning to put a different copies of my Web API compiled codes in each directory, in preparation...
View ArticleAdding roles to an oAuth2 token
Hi,I'm working with the sample Web API template from VS2013. I created a new project that supported Individual Account for the authentication provider. This gives me an oAuth2 implementation.In the...
View ArticleSerializable class not getting bound in WebApi
I have the complex type class below which is not getting bound to the data sent via web api(screenshots attached)[Serializable] public class DefaultSearchCriteria : CriteriaBase { public...
View ArticleWeb API 2 Cors not working?
Hi, I've just started playing with the web api 2. I have read about how is now suppose to handle cross domain support, by adding the following.. public static void Register(HttpConfiguration config) {...
View ArticleBinary content with bson serialization
Hi Can anyone provide me reference links to post binary content using BSON Media Type Formatter? I want to write a web api service which should accept multiple files and call it from a .Net client. I...
View ArticleWhere is created answer after login through third portal ie. Facebook in Web...
In ASP.NET MVC Web API 2 have implemented registration through third portal ie. Twitter and the end user get...
View ArticleCalling WebAPI from Windows Store App
Hi,Not sure if this is the correct forum, but can anyone give me an example of calling a web API GET action that returns a simple JSON encoded object.I have seen examples in console apps or windows...
View ArticleAsp.Net Web Api request returns 405 when using CORS
I am trying to perform a cross domain request with Chrome (latest version) and a Web API action for POST is first being negotiated by chrome using the OPTIONS verb. Using jQuery 2.1, I have...
View ArticlePrevent WebRequest causing a exception
I currently have code that sends requests for a XML file from a number of remote IP addresses.However, If the IP address cannot be reached (which is normal), the code generates a exception.I've got a...
View Article