I run my solution on IIS Express with address http://localhost:58187/
I try to record some test using JMeter, so I configure Test Script Recorder as you can see below. Port for proxy is 8888.
After that I set proxy settings in Chrome as you see below.
After all configuration I click "Start" button in But when I go by browser into localhost address I get error ERR_CONNECTION_REFUSED. What made I wrong?
I believe your second screenshot contains the answer:
Try unticking the highlighted box and that should be it.
All other configuration seems to be fine (assuming you don't forget to start JMeter's proxy)
Going forward I would recommend one of the following approaches: