Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0104: 'Control' is an ambiguous reference between 'System.Web.UI.Control' and 'System.Windows.Forms.Control'

Source Error:


Line 24:     {
Line 25: 
Line 26:         foreach (Control control in controlCollection)
Line 27:         {
Line 28:             if (control is TextBox)

Source File: e:\New Web\New Website\Website333\BSUWebsite\BSU\BSUWebSite\ConfProfReport.aspx.cs    Line: 26






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0