It happens when your page code references a ScriptManager but your Page or MasterPage does not have it referenced, therefore just add:
<ASP:ScriptManager ID="SM1" runat="server />