This documentation is archived and is not being maintained.

Compiler Error CS0647 

Error Message

Error emitting 'attribute' attribute -- 'reason'

The following sample generates CS0647:

// CS0647.cs
using System.Runtime.InteropServices;

[Guid("z")]   // CS0647, incorrect uuid format.
// try the following line instead
// [Guid("00000000-0000-0000-0000-000000000001")]
public class MyClass
{
   public static void Main()
   {
   }
}
Show: