Tagged Questions
0
votes
0answers
24 views
ASP.NET Web API Deployment on IIS 7.5
I have a 3rd party client dll that requires the Application Pool to allow for 32bit applications and the pipeline mode to be set to classic mode. For authentication, the ASP.NET Impersonation needs to ...
0
votes
1answer
41 views
.Net WebApi OData Actions that return an Queryable
I want to achieve something close to the RateProduct action described in: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-actions
In that tutorial it is defined as:
...
0
votes
1answer
25 views
How to remove prefixes from ModelState keys?
Is there a way to remove prefixes from ModelState keys? Consider a scenario, where you have an additional validation in your business layer classes, inside which you don't know about ModelState key ...
0
votes
1answer
43 views
Custom Exceptions in Web API
Can someone help me in creating an exception which has the overridden message, source and stack trace values.
I tried using httperror in the HttpResponseMessage, but I need to add Stacktrace and ...
0
votes
1answer
34 views
Is it possible to use SQL Server session state with a stateless web api application?
We have a stateless web api application where we only use the token(obtained on login) as an identifier, which we decrypt, determine user and perform the action.
We now need to store a rather big ...
0
votes
1answer
52 views
Order property in System.Web.Http.AuthorizeAttribute
If I have multiple authorization attributes on an action, my understanding is that for System.Web.Mvc.AuthorizeAttribute I can specify the Order property like:
[CustomAuth(Order=2)]
...
0
votes
1answer
95 views
Best practice for ASP.NET Web API design?
I'm currently trying to create a REST'ish web service backend with an ASP.NET Web API, EF5 Code First approach. Looking now for some advice to avoid the maybe most known novice errors.
Whats the best ...
1
vote
1answer
41 views
Migrating WCF Services to ASP.NET Web API - reuse ServiceAuthorizationManager?
I am migrating some WCF services to Web API. Is is possible to reuse the ServiceAuthorizationManager or is it strictly for WCF?
1
vote
1answer
31 views
Creating a resource that can have multiple representations
Say I have a Widget resource which is made up of a Thingy and a Dooda.
Thingys and Doodas come in various types and the combination of Thingy type and Dooda type will determine exactly what properties ...
0
votes
3answers
720 views
Basic authentication in web api
I started working on Web Api and just want to create a simple basic authentication. I want to know how to do that?
I tried with the given MSDN link but no step wise tutorial is given on MSDN.
...
1
vote
1answer
126 views
OData with webapi - navigation property
i am writing OData service which is built on WebApi asp.net, i am building my own EDM
ODataModelBuilder builder = new ODataModelBuilder();
builder.Namespace = "Models";
...
0
votes
1answer
48 views
Deploying ASP.NET Web API to IIS 7
I developed a Web API and am trying to deploy it to my web server. Is there a forward steps to do that
0
votes
1answer
36 views
Web API Client Posting Not Hitting Database
Kindly help with ASP.NET MVC 4 Web Api project. I can retrieve JSON from my api controller without hitch, and posting seems to work (my UI is updated), but data is not hitting the database.
// POST ...
1
vote
1answer
42 views
ActionFilter is not executing in WebApplication but executing in WebApi
I have created an ActionFilterAttribute
public class LoggingNHibernateSessionAttribute : ActionFilterAttribute
The purpose of the filter as name indicates is logging and opens and commits a ...
1
vote
1answer
58 views
LifetimeScoping error in WebApi self hosted app and SimpleInjector as IoC
I read these (+ , + , + and + ) pages, but I connot figure out what should I do.
I have this simple interface and concrete type:
public interface IIdentifierGenerator {
long Generate(Type type);
...