Arduino mega don't work with MFRC522 and ethernet shield.

Hi,
i have a problem with arduino mega, MFRC522 and ethernet shield.

When all devices are connect the ethernet shield don't work.
This is the connection pin that i used.

/*MFRC522
* Signal                Pin		        Pin
*                   	Arduino Mega    MFRC522			
* -----------------------------------------------------------------------------
* SPI SS                    9		    SDA 		
* SPI SCK                   52          SCK				
* SPI MOSI                  51          MOSI		
* SPI MISO             		50          MISO		
* IRQ
* GND                   	GND         GND			
* Reset                     8           RST				
* +3.3V       		 		+3.3V		+3.3V			
*/
#include <SPI.h>
#include <Ethernet.h>
#include <MFRC522.h>

#define RST_PIN 8
#define SS_PIN 9
//#define PIN 10 Ethernet shield


MFRC522 mfrc522(SS_PIN, RST_PIN);  // Create MFRC522 instance.

Where is my error?
Thanks

The error appears to be a partial sketch, or a missing ethernet shield type (there are a few), or that the ethernet shield is already using a pin you want to use for the MFRC522.

Take your pick.

The ethernet work fine if the pin 50,51,52 of MFRC522 are disconnect.
But i read in internet that i can share this pin with multiple devices.
I change the SS and RST pin of MFRC522 with 9 and 8.
But when the two devices are connect the ethernet shield don't work.
Have you a idea?
thanks

The problem is the MISO pin, how can the ethernet W5100 with mfrc522 on arduino mega work?
Thanks