Ambiguous match found.  An unhandled exception occurred

Problem

You get this error message when running your application:

Ambiguous match found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Reflection.AmbiguousMatchException: Ambiguous match found.

This error typically occurs when you have a database field name that is also a “reserved word” in the programming language you have chosen for your application (C# or Visual Basic .NET).  Iron Speed Designer frequently uses database field names to name the controls on your web page.  Because the code-behind files for these web pages are compiled dynamically at run-time by the .NET Framework, this error message appears when you run your application and attempt to display a page containing a control whose name is a reserved word in the programming language or .NET Framework.

Solution

In Iron Speed Designer, rename the control that results in a reserved word collision.

Step 1:  Using Application Explorer, select the page with the offending control.

Step 2:  In the Layout Editor, select the panel and rename the control (Right-click, Rename Panel Control...).  Select the control and rename it.

Step 3:  Rebuild and run your application.

Step 4:  Submit a technical support case to Iron Speed with the name of the reserved word.  Iron Speed Designer maintains a reserved word list which helps Iron Speed Designer automatically avoid reserved word collisions.  We’d like to know about any reserved words that we missed.

See Also

Part IX:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages