Hello,
for one version of the ethernet shield there is a very easy way to solve the problem:
Hit the reset button on the mega board directly after starting the upload.
This board has no manufacturer name printed on it, and a long row of resistors and caps (12pcs) beside
the 3 leds (Rx,Tx,On), behind the ethernet plug.
rgds
charlythedraon