I just started getting a NullReferenceException
when trying to set an a range with the Excel interop with the following code:
excelRange.Interior.Color = System.Drawing.Color.Black;
I found that it is actually any color in the System.Drawing.Color
class that has this problem. On a different server, the same code works just fine. I have tried removing the reference to System.Drawing
and re-adding it but it did not fix the problem.