c# - How to debug MVC3/WebAPI routing 404 error? -


my webapi route defined follows:

config.routes.maphttproute(   name: "buildmodels",   routetemplate: "api/build/models/{productline}/{language}",   defaults: new { controller = "build", action = "getmodels" } ); 

controller:

public class buildcontroller : apicontroller {     public async task<httpresponsemessage> getmodels(string productline, string language)     {         // omitted brevity, don't feel it's pertinent         // if disagree fill in.           // nothing has changed in here , worked before.         return await ...;     } } 

/api/build/models/x/en

[httpexception]: controller path &#39;/api/build/models/x/en&#39; not found or not implement icontroller.    @ system.web.mvc.defaultcontrollerfactory.getcontrollerinstance(requestcontext requestcontext, type controllertype)    @ system.web.mvc.defaultcontrollerfactory.createcontroller(requestcontext requestcontext, string controllername)    @ system.web.mvc.mvchandler.processrequestinit(httpcontextbase httpcontext, icontroller& controller, icontrollerfactory& factory)    @ system.web.mvc.mvchandler.beginprocessrequest(httpcontextbase httpcontext, asynccallback callback, object state)    @ system.web.httpapplication.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()    @ system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) 

/api/build/models/x/

{"message":"the arguments value not valid : {language}"} 

all of routes working except ones on single controller, working before. changed something, can't figure out what.

have tried activating custom errors?

<customerrors mode="on" defaultredirect="/customerrors/500.aspx">     <error statuscode="404" redirect="/customerrors/404.html" />     <error statuscode="403" redirect="/customerrors/403.html" /> </customerrors> 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -