jquery - Web API controller named Aux -


this might sound silly tried create controller (web api - mvc 4)

public class auxcontroller : apicontroller {     [httpget]     public user getuser()     {         ...     } } 

when called api via jquery

var options =         {             url: 'api/aux/getuser',             type: 'get',             datatype: 'json'         }; 

i error.

if refactor controller

public class audcontroller : apicontroller 

and use url option: 'api/aud/getuser'

it works nicely.

and guessed it, if refactor back, doesn't work.

is there reason why happens? machine?

certain keywords such aux not allowed in url. believe this answer question.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -