You are not Logged in
Would you like to Login or Register

Today is: Friday, 21 November, 2008
Check this months hot topics

Parser Error Message: Ambiguous match found.

VS 2005 Only.

This can be an annoying error, but it is usually caused by one thing.

If you add an object to your html source such as

<igtxt:WebDateTimeEdit id="dteStartdate" runat="server" ToolTip="The end Date to use for the report." EditModeFormat="dd/MM/yy" Width="60px"></igtxt:WebDateTimeEdit>

By default this will be instatiated in the partial class that is created by Visual Studio 2005. However, there is nothing to stop you specifing the object in the codebehind as well such as

protected Infragistics.WebUI.WebDataInput.WebDateTimeEdit dteStartdate;

And while you are running in Dev this will continue to work, but as soon as you do a release build you will get the Parser Error Message when trying access the page.

A pain but when you know where to start looking it does make it easier to solve the problem.

kick it on DotNetKicks.com del.icio.us digg Mister Wong YahooMyWeb Reddit Furl Spurl blogmarks
Greg Duffield Skype
Author : Greg Duffield
Published : Thursday, 13 July, 2006

Greg has too many years experience in developement from VB for DOS all the way through to Windows Workflow and LINQ while covering pretty much every technology in between. A complete MS evangelist he is now Director of the only MS Gold Partner IT services company in Norfolk. Wehere they are producing Web 2 Applications for various sectors, and are currently entering the Haulage industry with their latest product.

Comments

Anonymous said:

Excellent find. Thanks for sharing

July 14, 2006 - 9:26 AM

Prashant0268 said:

Thanks a lot for the solution! I was migrating an application to ASP.Net 2.0 and this problem was causing a lots of troubles. I went on to comment all the instances where Controls were again explicitly defined in the Code behind and it worked!!

May 18, 2007 - 5:10 PM

scdealer 101 said:

Read a few comments on this issue, this one actualy helped rather confused. easily found the issue after. Thanks

July 11, 2007 - 3:57 PM

Add Comment

Enter your comment below and it will be submitted for moderation.

Your Name

Add Tag

Please enter tags for this article, seperated by semi-colon ;

View Tag's by : # articles | # views