How to Connect to our web API by running the following command: httprepl https://localhost:{Port}

Anudeep Kumar 20 Reputation points
2024-07-03T16:23:34.2966667+00:00

I'm Unable to connect to web API to Test the controller with Command Line HTTP REPL.

User's image

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,712 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 66,226 Reputation points
    2024-07-03T17:27:31.97+00:00

    you have installed the .net 7.0 version of httprepl, but don't have the .net 7 framework installed. this is because there is not yet a released version for .net 8. to install the proper one:

    dotnet tool install --global Microsoft.dotnet-httprepl --version 8.0.0-preview.24229.1
    

    see docs:

    https://www.nuget.org/packages/Microsoft.dotnet-httprepl/8.0.0-preview.24229.1

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.