.NET 4x upgrade troubleshooting
CAPMS
upgrade from .NET 4.0 to 4.7.2:
after upgrading AJAX Control Toolkit from 4x to 7 the error message below was displayed on clicking Ènglish or French buttons the message below was displayed.
Solved by temporarily changing the id (html1) to HTML1, and back again:
StepsChanged Line 4: <html id="Html1" runat="server">
to Line 4: <html id="HTML1" runat="server">
Selected “clean” and “rebuild.
then changed line 4 back to the original
Line 4: <html id="Html1" runat="server">
Server Error in '/' Application. Parser Error Message: The base class includes the field 'Html1', but its type (System.Web.UI.HtmlControls.HtmlGenericControl) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlElement). Source Error: Line 2: Source File: /Site.Master Line: 4 Version Information: Microsoft .NET Framework Version:4.0.30319; http://ASP.NET Version:4.8.9282.0 |
---|
BC30002 Type 'Global.AjaxControlToolkit.ToolkitScriptManager' is not defined
This error was reported for 19 designer files when I upgraded AjaxControlToolkit to the latest version (20.x)
the ToolkitScriptManager was removed from AjaxControlToolkit in about v. 15 as it is replaced by the standard asp.net script manager.
For example, CAPMS-SGPMC C:\Users\dertinn\source\repos\CAPMS-SGPMC2\Source\CAPMS-SGPMC\a_e.aspx.designer.vb 23
Originally I tried doing a rename of all the references to ToolkitScriptManager in the aspx files.
This did not resolve the error reported for the designer file, such as the one above and triggered additional errors as well.
We cannot edit the designer files because they are “generated”
The solution below eliminated the error and triggered the regeneration of the associated designer file(s).
Currently, I did it one by one, will investigate if there is an easier way later.
This is what works: Issue regarding ToolkitScriptManager - Microsoft Q&A