ASP.NET 2.0 “Ambiguous match found” error
when trying to load an ASPX page. The error was a “Parser Error” with “Ambiguous match found”.
The problem could be caused by having a member variable and a control variable with the same name (but different casing)
e.g.
private double aVariable = 0;
AnVariable.Text = aVariable .ToString("c");
The code will compile, and will run locally, but fails when deployed.
The solution is to rename the private member variables
*Thanks to Simon for the finding
*the reference: http://weblogs.asp.net/pjohnson/archive/2006/08/11/Ambiguous-match-found.aspx
No comments:
Post a Comment