Getting error message "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) in WinForms application

WowGeeWhiz 6 Reputation points
2022-11-02T22:01:23.367+00:00

I am using Visual Studios 2022 to make a Windows Forms application with C# .NET core 6.0

The program seems to function without any errors, but whenever I attempt to publish the build to a local folder, I get this error message. I was getting this message once before and I repaired my installation. After the repair, the program built and published fine on the first attempt. I changed a large amount of the code, built again and had no error. On the third attempt, however, after changing another large chunk of code, the issue reappeared. I tried to lookup the reason for this error, but I can't seem to find anything for Visual Studios 2022 or .NET core 6.0

I'm not sure what I can do to fix this. It does not seem to affect the build, but I would like to know the cause so I can prevent this and any effects I have not yet noticed.

EDIT: This is now also occurring whenever I try to save the project or even just change tabs to a different form, but not the actual .cs files. The form files still display properly after clearing the error message, and the build finishes successfully, but this is really bothering me because I cannot save any of the files.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Wesley Putter 5 Reputation points
    2023-08-26T11:25:06.5966667+00:00

    I'am getting same error,same project type and dotnet version,iam wandering if it has to do with Onedrive syncing process.

    1 person found this answer helpful.
    0 comments No comments