Friday, 17 March 2017

How to pass email id as default parameter in routing

When you try to run http://localhost:2911/api/sample/sampleusename.com

this will not work just because We are passing .com in the parameter so we have to allow runAllManagedModulesForAllRequests="true" in web.config under System.WebServer - > Modules

Please see the image below.


Now it will work Happy Coding :)

No comments:

Post a Comment