Using the SD card AND the Ethernet on sheild causes issues

If that test sketch worked fine, then incorporate my setup from that test sketch into your code.