Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > ambiguous match found

Reply
Thread Tools

ambiguous match found

 
 
Sam
Guest
Posts: n/a
 
      07-21-2005
see code & error below.

i noticed that the page parser only calles the set property so i decided
to program it like below so that the set property can be called by the
page parser while the get property is still availible for programming.

Sam.
-----------------------------------------------------------------------
<PersistenceMode(PersistenceMode.InnerProperty)> _
Public WriteOnly Property Element() As Element
Set(ByVal element As Element)
_elements.Add(element)
End Set
End Property

<PersistenceMode(PersistenceMode.InnerProperty)> _
Public ReadOnly Property element(ByVal i As integer) As Element
Get
Return _elements.Item(i)
End Get
End Property
-----------------------------------------------------------------------

Parser Error Message: Ambiguous match found.

Source Error:


Line 5: <mylib:myclass id="id" runat="server">
Line 6: <Source>Sams Source</Source>
Line 7: <Element label="Sams Label 1" />
Line 8: <Element label="Sams Label 2" />
Line 9: <Element label="Sams Label 3" />

Source File: /WebSite2/Employees.aspx Line: 7
-----------------------------------------------------------------------
 
Reply With Quote
 
 
 
 
Dale
Guest
Posts: n/a
 
      07-26-2005
Look up Microsoft knowledge base article 823194 and read this article on
creating custom collection classes. They solved the ambiguous match found
error for me.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA


"Sam" wrote:

> see code & error below.
>
> i noticed that the page parser only calles the set property so i decided
> to program it like below so that the set property can be called by the
> page parser while the get property is still availible for programming.
>
> Sam.
> -----------------------------------------------------------------------
> <PersistenceMode(PersistenceMode.InnerProperty)> _
> Public WriteOnly Property Element() As Element
> Set(ByVal element As Element)
> _elements.Add(element)
> End Set
> End Property
>
> <PersistenceMode(PersistenceMode.InnerProperty)> _
> Public ReadOnly Property element(ByVal i As integer) As Element
> Get
> Return _elements.Item(i)
> End Get
> End Property
> -----------------------------------------------------------------------
>
> Parser Error Message: Ambiguous match found.
>
> Source Error:
>
>
> Line 5: <mylib:myclass id="id" runat="server">
> Line 6: <Source>Sams Source</Source>
> Line 7: <Element label="Sams Label 1" />
> Line 8: <Element label="Sams Label 2" />
> Line 9: <Element label="Sams Label 3" />
>
> Source File: /WebSite2/Employees.aspx Line: 7
> -----------------------------------------------------------------------
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ambiguous match found. Ben ASP .Net 4 03-23-2010 06:57 AM
Error: Ambiguous match found. =?Utf-8?B?QWxleGFuZHJl?= ASP .Net 4 10-01-2009 01:12 PM
Ambiguous match found aparna ASP .Net 4 03-26-2008 11:28 AM
parser error message: Ambiguous match found Francois ASP .Net 3 05-22-2007 03:29 PM
Parser Error Message: Ambiguous match found. Denon ASP .Net 2 01-02-2004 09:19 AM



Advertisments