79710764

Date: 2025-07-22 16:12:34
Score: 1.5
Natty:
Report link

I'm getting a different error in .NET 8.0. Here is my code:

Microsoft.Office.Interop.Excel.Application xl = new();

Workbook wb = xl.Workbooks.Open(filepath);

dynamic noSenseLabel = xl.ActiveWorkbook.SensitivityLabel;

dynamic lblInfo = noSenseLabel.CreateLabelInfo();

lblInfo.LabelId = labelId;

lblInfo.LabelName = "Sensitive";

lblInfo.SiteId = siteId;

noSenseLabel.SetLabel(lblInfo, lblInfo);

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stephanie Greene