ContosoPizza Web App can´t run on .NET 8.0

Gaspar Carballada 0 Reputation points
2024-08-26T20:42:19.8833333+00:00

when 'dotnet watch' is executed on the terminal with the correct directory it fails with this line:
dotnet watch ❌ Exited with error code -2147450730.
Please some help, i'm trying to learn.

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
11 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 3,840 Reputation points Microsoft Vendor
    2024-08-27T05:36:04.0366667+00:00

    Hi Gaspar Carballada,

    The error code -2147450730 (or 0x80008096) typically indicates an issue with the .NET runtime environment, which may arise from: 

    Corrupted .NET Installation: The .NET SDK or runtime on your system may be damaged. 

    Framework Compatibility Issues: There could be an incompatibility between the installed framework and your project. 

    Missing or Faulty System Components: A critical system component required by the runtime may be missing or not functioning properly. 

    To resolve the issue, you can follow these steps: 

    1.Verify .NET Runtime Installation 

    Check the installed .NET SDKs and runtimes by running the following commands: 

    dotnet --list-sdks
    dotnet --list-runtimes
    
    

    If any required version is missing, you can download and install the appropriate version from the .NET website

    2.Reinstall .NET SDK/Runtime 

    If you suspect that the .NET SDK or runtime is corrupted, uninstall the current version: 

    On Windows, go to Control Panel > Programs and Features and uninstall the .NET versions. 

    On macOS/Linux, use your OS's package manager to uninstall. 

    After uninstallation, download and reinstall the latest version from the .NET website

    3.Update Your IDE 

    Ensure that you are using the latest version of Visual Studio or Visual Studio Code. Updates can resolve compatibility issues between your IDE and the .NET runtime. 

    4.Check for System Updates 

    Ensure that your operating system is fully updated, as missing system updates can interfere with the .NET runtime. 

    5.Enable Detailed Logging 

    To get more information about the error, run your application with detailed logging enabled: 

    dotnet run --verbosity detailed
    
    

    If the error persists, providing more details about when the error occurs (e.g., during project build, runtime, or a specific operation) can help in further diagnosing the issue    

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.        

    Thank you. 

    1 person found this answer helpful.
    0 comments No comments

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.