简体   繁体   中英

why my web api is working on https not http in C#

I have created a project in .net framework, it is working well on https://localhost:44309/api/office but it is giving following error on http://localhost:44309/api/office

GET http://localhost:44309/api/Office
Error: read ECONNRESET

If you are running from Visual Studio, you should see the various URLs for http and https. They cannot be on the same port. Click on your project and check the Project Properties section as seen in the snapshot below.

Snapshot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM