Building Error csc.exe exited with code 532467266

error: csc.exe exited with code 532467266

Hi everyone,
I got this error when I try to build the project. The project is a simple power calculator computing the real power based on voltage phasor and current phasor. I have tried different methods suggested in stackflow but they don’t work. Please let me know if anyone has seen this problem before. The project code is also attached. Thanks.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CalcPower.Framework;
using CalcPower.Model.GPA;

namespace CalcPower
{
static class Algorithm
{
public static void UpdateSystemSettings()
{
SystemSettings.FramesPerSecond = 30;
SystemSettings.LagTime = 3;
SystemSettings.LeadTime = 1;
}

    public static Power Execute(VIPair input)
    {
        Power output = new Power();          

        // Implement your algorithm here
        output.Active = 3 * input.Voltage.Magnitude * input.Current.Magnitude * Math.Cos(input.Voltage.Angle - input.Current.Angle);

        // You can also write messages to the main window:
        MainWindow.WriteMessage("yes");

        return output;
    }
}

}

Hi Tong,

Take a look at the file size of the CalcPower.ico file in the root of your project source code. It should be the same size as C:\Program Files\openECA\Client\Templates\CSharp\AlgotithmTemplate\AlgorithmTemplate.ico. If it’s not, go ahead and delete the CalcPower icon, manually copy the file from AlgorithmTemplate over to your project, and rename it to CalcPower.ico.

Thanks,
Stephen