Performance testing Webapi
I have a web api service, which i wish to perform performance testing.My webapi uses Dependency injection using castle windsor.I used nunit framework to do the testing. As my jenkins server which does...
View ArticleTags missing in XML attachments, proper on compression
When XML file being sent as in attachment, it gets disturbed, but when its compressed and sent, it comes properly. Any solution?
View ArticleError page in web api
Hi,Is it possible to show error page in custom Authorization filter for anonymous accesss.Thanks,
View ArticleSession state has created a session id, but cannot save it because the...
Hi All,I got the following error on server.Session state has created a session id, but cannot save it because the response was already flushed by the application. But it is working fine on my local...
View ArticleSeparate project Web Api and HelpPage (MVC)
Is it possible to have a separate Web Api project and HelpPage (MVC) project? I tried by doing the following:Create Web Api project and added some APIs Enable output for XML documentation in Web Api...
View ArticleWeb Api not working when deployed on windows 7 iis
Hello All,I have made a web service using web api on windows 8.1 machine using visual studio.net 2012.i have publish the code and deployed it on the local iis server. for this local iis it's working...
View ArticleRun Web API application on server without SSL Cert
Hi, I am running an ssl cert without a ssl cert. There is an internal error. Could this be the reason? It works fine on my local computer. Do I have to set something in the web.config or something?Best...
View ArticleOData action with WebAPI?
I define an EDM model like: var action = builder.EntityType<TOrg>() .Action("GetOrganizationByTypeAndStatus"); action.Parameter<string[]>("type");...
View ArticleDLL framework errors
Hi fold,I am build a WebAPI/MVC application. It works fine without configuring CORS. When I added the CORS dll, I am receiving this errors. I think it has to do with target framework vs version...
View Articlehowto allow only specified clients(saved in database) use webapi controllers?
hi allhowto allow only specified clients(saved in database) use webapi controllers?i want to prevent other requests?any example plz.
View ArticleUTC Date is being deserialized to server local time when PUT and PATCH.
When I sending data in a HTTP Request with POST method, any date string formatted like "2016-02-05T15:00:00.000Z" is deserialized correctly as UTC date time at the server side. But with PUT or PATCH...
View ArticleOdata v4 always return Json
HiIhave a realy simple ODataController witch returns a list of pocos or a single poco. I doesn't mather what i try it only returns JSon.I try to set HTML header in Fiddler :Accept:...
View ArticleWrite Unit Test for an API method that returns File Content/Byte Array
I've a Web API method that returns the content of the file. Here is the server side code that I used to return the content. HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);...
View ArticleVS 2015 OData function SQL Get filtering (parameter passing) not working for...
Hi all,I am using VS2015 OData and cannot get a simple Get function working.Is there a fix or should I go back to 'non-OData' web services?Please helpBest RegardsStewartThe following Controller Gets...
View ArticlePassword Recovery API or Forgot Password API
Hi,I am trying to set up a Web Api project.I could not find the code for Forgot Password method or Password Recovery methodin the Account Controller.How will I send a URL to the user's Email Account to...
View ArticleHow to Create Async method that return value before sub method complete.
Hi All,How to Create Async method that return value before sub method complete.private void Demo() { // Do something, given that the result doesn't matter. } public string Do() { Demo(); // The...
View ArticleXmlTextReader - need to provide a User-Agent header to HTTP request
In an ASP.Net app (Visual Studio 2010 - VB.net) web application;I need to add User-Agent header info to a call to a National Weather Service website \ XML file, and I'm not sure how to add this to my...
View ArticleHow to share the same Context for both Web API project and MVC Project?
Hi,I have a Web API project with Registration and Login methods in the API Account controller and when someone logins in to my website Icall the API and get the access token to access other pages.I...
View ArticleSelf-Hosted: ASP.NET Web API 2.2 Help Page: Current status?
Does anyone know the current status of being able to run the FULL Microsoft ASP.NET Web API 2.2 Help Page system in a self-hosted environment, as the current release only runs under IIS? The options...
View ArticleSystem.Net.Http.UriExtensions wrong signature for .NET version
I just noticed that the .NET 4.5 variant for the nuget package Mirosoft.AspNet.WebApi.Client 5.2.3 doesn't match the signature of the PCL variant. And it's causing a missing method exception at runtime...
View Article