G120E Input not working

We have custom board and we cannot appear to get the input reading. ie the code give augment exception. I’m i doing something stupid?

using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using System.Threading;

namespace MFConsoleApplication1
{
    public class Program
    {
        private static OutputPort button01;
        private static OutputPort button02;
        private static OutputPort button03;
        private static OutputPort button04;

        private static InputPort sw6;
        private static InputPort sw7;
        private static InputPort sw8;
        private static InputPort sw9;

        public static void Main()
        {

            button01 = new OutputPort(GHI.Pins.G120E.Gpio.P2_25, false);
            button02 = new OutputPort(GHI.Pins.G120E.Gpio.P2_22, false);
            button03 = new OutputPort(GHI.Pins.G120E.Gpio.P0_1, false);
            button04 = new OutputPort(GHI.Pins.G120E.Gpio.P2_26, false);


            sw6 = new InputPort(GHI.Pins.G120E.Gpio.P3_24, true, Port.ResistorMode.Disabled); //argumentexception error
            sw7 = new InputPort(GHI.Pins.G120E.Gpio.P3_25, true, Port.ResistorMode.PullDown);//argumentexception error
            sw8 = new InputPort(GHI.Pins.G120E.Gpio.P1_19, true, Port.ResistorMode.PullDown);//argumentexception error
            sw9 = new InputPort(GHI.Pins.G120E.Gpio.P2_21, true, Port.ResistorMode.PullDown);//works fine

            while (true)
            {

                if (sw6.Read())
                {
                    Debug.Print("sw6 is on");
                    button01.Write(true);
                    button02.Write(true);
                    button03.Write(true);
                    button04.Write(true);


                }
                else
                {
                    Debug.Print("sw6 is off");
                    button01.Write(false);

                    button02.Write(false);
                    button03.Write(false);
                    button04.Write(false);

                }

                if (sw7.Read())
                {
                    Debug.Print("sw7 is off");
                    button01.Write(true);

                    button02.Write(true);
                    button03.Write(true);


                    while (sw7.Read())
                    {
                        Debug.Print("sw7 2.26 is blinking");
                        button04.Write(true);
                        Thread.Sleep(100);
                        button04.Write(false);
                        Thread.Sleep(100);

                    }

                }
                Debug.Print("loop it");
            }
            /// Debug.Print(Resources.GetString(Resources.StringResources.String1));
        }
    }
}

:’( :’(

@ anthonys - I believe it is because you are setting glitch filter, the second parameter, to true. Glitch filter is only supported on interrupt pins if I remember correctly and only pins on ports 0 and 2 are interrupts on the G120.