I am trying to add report viewer control dynamically on my visual web part (on ascx control). The code I am writing is on PreInit event and creating an instance of Report Viewer Control and adding it to a panel.On deployment I get the following error
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Mon, 7 Jan 2013 09:05:32 UTC
Message: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_m_g_ed4b61fd_c31f_4f4d_8463_33499d19b427_ctl00_f1dd2935-2e69-4944-aad3-c7a446f9bfe0_ctl09_ReportArea'. If it is being updated dynamically then it must be inside another UpdatePanel.
i am not sure whats wrong here.