C# Error CS1926 – Error opening Win32 manifest file {0} — {1}

C# Error

CS1926 – Error opening Win32 manifest file {0} — {1}

Reason for the Error & Solution

Error reading Win32 manifest file ‘filename’ — ‘error’.

This error is generated when the following conditions are true:

  1. The /win32manifest option is specified either on the command line or by right-clicking the Project icon in Solution Explorer, pointing to Add, clicking New Item, and then clicking Application Manifest File.

  2. The file is either corrupted or missing.

To correct this error

  1. Remove the option.

  2. Replace, repair, or regenerate the file.

Example

The following example generates CS1926 when it is compiled with a corrupted for missing win32 manifest file:

// cs1926.cs  
// Compile with: /win32manifest: ../../app.manifest  
// CS1926  
class Test  
{  
    public static int Main()  
    {  
        return 1;  
    }  
}

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

C# Compiler Error CS0442 – ‘Property’: abstract properties cannot have private accessors Reason for the Error You’ll get this error...
This is a really simple one . Below is a simple example of an enum called “Designation” defined with the...
This blog post explain the usage of the Checked Block in .NET and how you can use them in Visual...