473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error: Ambiguous match found.

Hi!
I receive this error in my webapp:

Ambiguous match found.
At line:
Line 1: <%@ page language="C#"
masterpagefile="~/memberscontents/master_interna.master"
autoeventwireup="true" inherits="members_contents_user_profile,
App_Web_user_profile.aspx.73f80179" title="Untitled Page" %>

Somebody can help?
Thanks
Alexandre

Apr 23 '06 #1
3 3712


"Alexandre" wrote:
Hi!
I receive this error in my webapp:

Ambiguous match found.
At line:
Line 1: <%@ page language="C#"
masterpagefile="~/memberscontents/master_interna.master"
autoeventwireup="true" inherits="members_contents_user_profile,
App_Web_user_profile.aspx.73f80179" title="Untitled Page" %>

Somebody can help?
Thanks
Alexandre


I am having the same problem but only on 1 site did you get any where in
sloving the issue?
May 12 '06 #2
Hi,

It seems like you have two variables in your page that differ only in the
case. For example, in your aspx page, you might have

<asp:TextBox ID="UserID" runat="server"/>

and in the code behind file you might have

private Int32 userID = 0;

Note that in my example, even though the variables have different
accessiblity and types, the variable names are similar (the difference is
only in the case).

In my opinion, this is a bug - C# is case sensitive and the above code is
perfectly legal from the point of view of the C# compiler. This explains why
it works as intended from within the VS 2005 IDE. The aspnet_compiler too
does not report any errors when you try to compile you website. However, some
error in the reflection mechanism causes a case insensitive search and that
is the reason for this "Ambiguous match found." error.

Try going through your code carefully and get change variable names that
differ only in their case. You should be fine.

Jim Chundevalel

"Alexandre" wrote:
Hi!
I receive this error in my webapp:

Ambiguous match found.
At line:
Line 1: <%@ page language="C#"
masterpagefile="~/memberscontents/master_interna.master"
autoeventwireup="true" inherits="members_contents_user_profile,
App_Web_user_profile.aspx.73f80179" title="Untitled Page" %>

Somebody can help?
Thanks
Alexandre

May 19 '06 #3
I did think of but it very had to find when you have to look through a number
of 2-3 tiered inheritance classes but I could not find anything will have a
closer look.

This appication is on 6 sites and it is only one is giving be the trouble?

Any other thing it could be.

"Jim Chundevalel" wrote:
Hi,

It seems like you have two variables in your page that differ only in the
case. For example, in your aspx page, you might have

<asp:TextBox ID="UserID" runat="server"/>

and in the code behind file you might have

private Int32 userID = 0;

Note that in my example, even though the variables have different
accessiblity and types, the variable names are similar (the difference is
only in the case).

In my opinion, this is a bug - C# is case sensitive and the above code is
perfectly legal from the point of view of the C# compiler. This explains why
it works as intended from within the VS 2005 IDE. The aspnet_compiler too
does not report any errors when you try to compile you website. However, some
error in the reflection mechanism causes a case insensitive search and that
is the reason for this "Ambiguous match found." error.

Try going through your code carefully and get change variable names that
differ only in their case. You should be fine.

Jim Chundevalel

"Alexandre" wrote:
Hi!
I receive this error in my webapp:

Ambiguous match found.
At line:
Line 1: <%@ page language="C#"
masterpagefile="~/memberscontents/master_interna.master"
autoeventwireup="true" inherits="members_contents_user_profile,
App_Web_user_profile.aspx.73f80179" title="Untitled Page" %>

Somebody can help?
Thanks
Alexandre

May 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: bmwrob | last post by:
I’m very new in C++ programming and am trying to make a decoder tool just for the purpose of learning. I started my project in VC++ 6.0, but after a change of PC, I continued my programming in VS...
2
by: Denon | last post by:
Hi, everybody I have a web control, build by VB.net, and if I put two instance on the same aspx, error occur while debugging. Parser Error Message: Ambiguous match found. It highlight the...
1
by: AVL | last post by:
hi, I've a problem in accessing user controls when I deploy the application in the production server.. I'm receiving the following error... Ambiguous match found. Source Error: Line 1: <%@...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
2
by: prakashramamoorthy | last post by:
Hi, I am using Metabuilders RowSelectorColumn in a Datagrid. In some pages, its working fine, but in some pages its giving error in this line Parser Error Message: Ambiguous match found. ...
3
by: Francois | last post by:
This is from a Dot Net 1.1 project converted to Dot Net 2.0. In 1.1, all was fine without any problem. In 2.0, on the developement machine all seems more or less OK. In release mode on the...
1
by: spamfree | last post by:
Hello, If anyone can give me some insight as to why this code fails to compile, I would be most appreciative. I have only been able to test it with gcc 3.4.4 and gcc 4.2.1, which both fail with...
15
by: aaragon | last post by:
Hello, does anyone have a clue about this error? and how to solve it? It seems to be trivial to me, but not for the compiler. I'm using g++ 4.2 on an Ubuntu Linux system: // main() .......
3
by: i3x171um | last post by:
To start off, I'm using GCC4. Specifically, the MingW (setjmp/longjmp) build of GCC 4.2.1 on Windows XP x64. I'm writing a class that abstracts a message, which can be either an integer (stored as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.