It's very important to know what type of treatment you are undergoing, which you haven't mentioned. I would assume you are undergoing a Root Canal Treatment as it usually takes more than one sitting and it can't be a normal filling as there is pain involved. Have your doctor prescribed medications before starting the treatment? If he had, i would guess that either your canals haven't been cleared yet, or you have a hot pulp.
Next Steps
Discuss with your doctor the problems you are facing, and do the needful, if multiple Xrays are to be taken, do not hesitate.