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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -