ROCHESTER, N.Y. -- Monroe County court deputies arrested a man trying to enter the Hall of Justice on Friday with a loaded gun.

Deputies noticed the handgun on an x-ray machine as 35-year-old Robert Salters attempted to enter the building.

Police immediately handcuffed Salters and took a 25-caliber handgun from his coat pocket.

Police say Salters was entering the Hall of Justice for a scheduled court appearance.

They say he has a long arrest record and is on probation.

Salters has been charged with felony possession of a weapon.