【ASP .NET】Postmanを用いてWeb APIをデバッグしたときに発生したエラーについて

エラー内容

Postmanを使ってASP .NET Web APIをローカル環境でデバッグを使用としたら、以下のエラーが発生した。

エラーメッセージ:Could not get response エラー種類:Error: read ECONNRESET

Postmanエラー

原因

原因としては、デバッグ環境がhttps通信であったためサーバー証明書関連でエラーが発生しているらしい。 ローカルでの開発であるため、ひとまずhttp通信のポートでデバッグすれば上記のエラーは出なくなる。

http通信のポートへ切り替えるには、.vsフォルダ内にあるconfigファイルを開き、http通信用のポートへアクセスすればいい。

タグで囲われた箇所がhttpとhttpsのローカルホストのポートを指定しているため、今回はhttp用ポートである63453を使用した。

            <site name="DRMDataManager" id="2">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="\Work\Demo\DaishiRetailManager\DRMDataManager\DRMDataManager" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:63453:localhost" />
                    <binding protocol="https" bindingInformation="*:44386:localhost" />
                </bindings>
            </site>