473,770 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="membe rs_contents_use r_profile,
App_Web_user_pr ofile.aspx.73f8 0179" title="Untitled Page" %>

Somebody can help?
Thanks
Alexandre

Apr 23 '06 #1
3 3740


"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="membe rs_contents_use r_profile,
App_Web_user_pr ofile.aspx.73f8 0179" 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="membe rs_contents_use r_profile,
App_Web_user_pr ofile.aspx.73f8 0179" 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="membe rs_contents_use r_profile,
App_Web_user_pr ofile.aspx.73f8 0179" 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
2734
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 .NET. Now I get a lot of compiling error which I don’t understand. Here is an extract from the code: int iOct; CString sASCII;
2
3720
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 second instance web control in aspx This is my web control is declared at aspx like this <cc1:ControlXXX id="ControlXXX2" runat="server" Height="21px" Width="146px"
1
1061
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: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="CommViewEvents.ascx.cs" Inherits="HydPortal.UserControls.CommViewEvents1
9
13278
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 <hash_map>//from Standard template library //and some other headers
2
981
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. Line 1: <%@ Register TagPrefix="mbrsc" Namespace="MetaBuilders.WebControls" Assembly="MetaBuilders.WebControls.RowSelectorColumn" %> any thoughts
3
7591
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 test machine, I have this error. at Line 1. Which is very explanative. What should I look for ?
1
1977
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 different errors (details below). //////// begin test_bug.cpp // Standard Type2Type from Alexandrescu's Modern C++ Design
15
6017
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() .... std::ofstream fout; fout.open("hello.out"); fout<<setfill('-')<<setw(20)<<"-"<<setfill(' ')<<endl; fout<<"hello "; // this is line 139
3
5823
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 long long int), a decimal (double), or a string (std::string). I basically want to overload most of a Message's operators so that the Message class feels more like a native type. For example... Message msg = "tester"; std::string str = msg;...
0
9617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10036
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8929
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.