The man, Joseph Calanchini, 29, of Pinedale, Wyo., faces a charge of unlawful carrying of a weapon. Police officers at the Grand Hyatt hotel noticed him carrying a rifle-type case at the entrance and detained him.
Wiley said he didn't know if the weapons were loaded.
"The speaker was never in any danger and she appreciates the quick and professional response of the police," said Pelosi spokesman Brendan Daly.