A receiver shall not be appointed without the party praying the appointment having given the opposite party at least five days' notice of the time and place of making the application, unless it shall appear that an immediate appointment is necessary, or good cause be shown for not giving notice.