Using the SD card AND the Ethernet on sheild causes issues

I think your pinMode statement is wrong. You need to use

pinMode(10,OUTPUT);

Neither one of the tutorials above use the pinMode statement you are using please explain.