asp.net mvc - Using ServiceStack's AuthService with Controller and AuthorizeAttribute -
there no simple servicestack sample classic asp.net mvc. both appharbor , socialbootstrap api based on singlepage application. how can implement classic asp.net mvc application servicestack's authentication. i've added authservice property basecontroller (autowired). , got weird "object reference" exception while implemantation. ( authservice line 135 base.requestcontext null) why i'm getting error? or send simple usage. (like asp.net mvc membership starter) services make use of requestcontext, needs injected current request context, e.g: authservice.requestcontext = new httprequestcontext( httpcontext.current.request.torequest(), httpcontext.current.response.toresponse(), null ); this uses extension methods in sessionextensions.cs . you want resolve services ioc - here's example of sharing functionality between servicestack , mvc .