Parsing Error: Ambiguous Match Found
Written by Ben McInturff   
Thursday, 14 May 2009 19:15

I got an interesting error that I had never gotten before from trusty old ASP.NET.

Parsing error: Ambiguous Match Found

The interesting thing about the error message is that it referenced the line 1 character 1 position of the .aspx file of the page in question. Turns out that .NET Reflection was getting a wee bit confused because I had a web control on the page with an ID similar to one of a variable I had declared, with just capitalization differences, i.e. someName the protected variable in the codebehind page, and a System.Web.UI.Webcontrols.TextBox SomeName in the .aspx page. 

If you get this error and have a similar experience, try renaming one or the other, and chances are that the page will now work. Hope this prevents someone's frustration out there. 

 

Valid XHTML and CSS.