Base solution for your next web application
Open Closed

Power Tools - CreateOrEdit API controller is not working #8562


User avatar
0
optixdev created

Angular + .Net Core

I have created the API controllers with Power Tools and API are accessable from the Swagger but when I run the API i am getting the (401 Undocumented | Error: Unauthorized)


2 Answer(s)
  • User Avatar
    0
    optixdev created

    Could not execute because the specified command or file was not found. Possible reasons for this include:

    • You misspelled a built-in dotnet command.
    • You intended to execute a .NET Core program, but dotnet-ef does not exist.
    • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. Running migrator... OnlineSupport\Support.cs(15,22): error CS0102: The type 'Support' already contains a definition for 'TenantId' [\aspnet-core\src\Support.Core\Support.Core.csproj]

    The build failed. Fix the build errors and run again.

  • User Avatar
    0
    maliming created
    Support Team

    hi

    Try

    dotnet tool install --global dotnet-ef --version 3.1.1