When i run a default maui blazor app it not showing output Whats the reason for that? this is the error message i got The program '[12180] MauiApp2.exe' has exited with code 2147942405 (0x80070005).

s. Nilothaman 0 Reputation points
2024-05-07T04:52:00.16+00:00

Windows 10 pro

version 22h2

os biuld 19045.4291

Visual Studio enterprise 2022 17.9.6

This is my pc and visual studio versions that im using.

When i run a default maui blazor app it not showing output

Whats the reason for that?

this is the error message i got

The program '[12180] MauiApp2.exe' has exited with code 2147942405 (0x80070005).

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

1 answer

Sort by: Most helpful
  1. SiddeshTN 3,785 Reputation points Microsoft Vendor
    2024-05-07T07:00:19.53+00:00

    Hi s. Nilothaman,

    Thank you for reaching out to Microsoft Q & A forum.

    Error code 0x80070005 suggests an "Access Denied" issue, commonly due to inadequate permissions. Troubleshooting entails adjusting permissions or scanning for malware.

    Below are several recommended steps for addressing this matter: 

    1.Run Visual Studio as an Administrator: Right-click on the Visual Studio shortcut, then select "Run as administrator". This action may grant Visual Studio the necessary permissions to access the resources essential for running the Maui Blazor app. 

    2.Verify Project Configuration: Ensure that your Maui Blazor project is configured accurately. Confirm that you've chosen the appropriate target framework and deployment target, and that all requisite dependencies are correctly installed. 

    3.Validate Debugging Settings: Review your debugging settings in Visual Studio to ensure proper configuration. Confirm that you're targeting the correct platform (e.g., x86, x64, ARM) and that debugging options are activated. 

    4.Disable Antivirus/Firewall: At times, antivirus or firewall software may obstruct applications from accessing specific resources. Temporarily disable any antivirus or firewall software and assess whether it resolves the issue. 

    5.Inspect the Output Window for Errors: Examine the Visual Studio Output window for any error messages that may provide additional insight into the issue. 

    6.Utilize the Event Viewer: Refer to the Windows Event Viewer to investigate any related error messages that may illuminate the problem. 

    7.Ensure Visual Studio and .NET MAUI are Updated: Confirm that you're utilizing the latest versions of Visual Studio and .NET MAUI. Updates frequently contain bug fixes and enhancements that could potentially resolve the issue. 

    8.Consider Reinstalling Visual Studio: If none of the aforementioned steps rectify the issue, contemplate reinstalling Visual Studio to ensure proper installation and the presence of all necessary components. 

    Please feel free to contact us if you have any additional questions.

    If you've found the provided answer helpful, please click the "Accept Answer/Upvote" button. This will be beneficial to other members of the Microsoft Q&A forum community.

    Thank you.

    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.