asp.net web api - Web Api, TokenEndPointPath returns Http resource was not found in production -


i have web api. works on local computer when publish on server/hosting. url request oauth token returns "no http resource found matches request". others controllers works fine.

any ideas why happens in production?

my startup.cs

using system; using system.web.http;  using microsoft.owin; using microsoft.owin.security.oauth; using owin;  [assembly: owinstartup(typeof(api.startup))]  namespace api { public class startup {     public void configuration(iappbuilder app)     {         var config = new httpconfiguration();          configureoauth(app);          webapiconfig.register(config);          app.usewebapi(config);         app.usecors(microsoft.owin.cors.corsoptions.allowall);         app.usewebapi(config);     }      public void configureoauth(iappbuilder app)     {         var oauthserveroptions = new oauthauthorizationserveroptions         {             allowinsecurehttp = true,             tokenendpointpath = new pathstring("/api/v1/oauth/token"), //todo: web config             accesstokenexpiretimespan = timespan.fromdays(1), //todo: web config             provider = new authorizationprovider()         };          app.useoauthauthorizationserver(oauthserveroptions);         app.useoauthbearerauthentication(new oauthbearerauthenticationoptions());     } } } 

best regards


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -