Hello all .. I am new at ASP.NET Web API and trying right now to learn it but I am encountering some problems trying to use Fiddler to debug it.
The steps I took to create my ASP.Net Web API and test from Fiddler are simple and as follows (I am sure I am missing something somewhere all help appreciated):
Step 1. Launch Microsoft Visual Studio Express 2013 for Web
Step 2. File > New Project > ASP.NET Web Application
Step 3, I named my new project Hello123 and accepted the whatever default folder was offered
Step 4. Selected Web API template
Step 5. Double clicked the ValuesController.cs from the Controllers folder
Step 6. Set breakpoints on the open { curly brace on all the methods of the Values controller class to force the code execution to stop from Fiddler
Step 7. Hit F5 to open browser
Step 8. Launched Fiddler
Step 9. Clicked Composer tab from Fiddler and copy paste the URL address from Step 7 and append the address with /api/values so that the string pasted for get in composer tab of Fiddler looks something like this:
http://localhost:51750/api/values
Step 10. Hit execute button from Fiddler
------------------------------------------------------------
The result is not what I expect as I am not automatically hitting the breakpoint after completing steps 1 thru 10 … instead I am ending up with a 401 error in Fiddler …
I am sure this is a problem encountered by all trying to learn ASP.Net Web API and people can quickly reproduce the same problem by accepting the defaults straight from the box as I did … however anyone who has experience superior to mine can say where, why
and how to fix the problem … thanks so much for all the help I really appreciate it.
Gratefully,
Ric