CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 6/29/2006 10:20:05 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 8 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
Clumsi
Asp.Net User
"Ambiguous match found" error in @Page directive6/29/2006 10:20:05 AM

0/0

I had a problem after converting an existing project to a Web Application Project.

After conversion all "CodeFile" entries in my @Page directives where changed to "Codebehind".

At runtime I got an "Ambiguous match found" error when I called one of my aspx pages - amazingly all other pages worked correct.

I checked the namespaces in my codebehind files, restartet IIS several times, deleted the temporaray .NET files etc. - nothing worked until I changed the "Codebehind" entry back to "CodeFile". Now everything works fine again.

Does anybody know what caused that error? And I wonder what the "big" difference between "Codebehind" and "CodeFile" is ... Smile

 

bmains
Asp.Net User
Re: "Ambiguous match found" error in @Page directive6/29/2006 11:55:19 AM

0/0

Hey,

In my ASP.NET 2.0 project in VS 2005, all of my @page directives use codefile.  CodeFile is the new property for referencing code behind pages.  I don't see CodeBehind in my intellisense.


Brian

"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
Clumsi
Asp.Net User
Re: "Ambiguous match found" error in @Page directive6/29/2006 12:13:53 PM

0/0

Thanks for your answer,

but the problem is:

All my page directives had the "codefile" property before i converted my VS2005 project like this

http://webproject.scottgu.com/CSharp/migration2/migration2.aspx

After conversion all props are changed to "codebehind" causing the error in one of my aspx pages ...

bmains
Asp.Net User
Re: "Ambiguous match found" error in @Page directive6/29/2006 1:34:50 PM

0/0

Hey,

Oh, your right, I didn't realize you were going to Web App project template.  Sorry about that.


Brian

"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
atagill
Asp.Net User
Re: "Ambiguous match found" error in @Page directive3/9/2007 6:27:23 AM

0/0

I was having the same problem, then I sorted out it is version problem, as my website was built in asp.net 1.1 but I recently installed asp.net version 2.0, and that problem started right after the installaion. So to solve this problem, first I uninstalled the asp.net 2.0 then installed the asp.net 1.1 and it solved the problem.

To uninstall the asp.net use the following command on the command prompt: (windows start button -> Run -> Type CMD)
C:\WINDOWS\MICROSOFT.NET\FRAMEWORK\V2.0.50727\ASPNET_REGIIS -u
C:\WINDOWS\MICROSOFT.NET\FRAMEWORK\V1.1.4322\ASPNET_REGIIS -i

NOTE: Exact version number may differ in your case.

Although I think each new version of asp.net must be backward compatible, but its not the case.

theangrycoder
Asp.Net User
Re: "Ambiguous match found" error in @Page directive7/5/2007 4:46:47 PM

0/0

I had the same problem just some minutes ago and I managed to throw it out using http://dotnetdebug.blogspot.com/2006/03/ambiguous-match-found-in-web-control.html 

    In short, make sure that there is not two same variables defined in the application (even different case, for example, image1 and Image1, change one of them to something else). This is causing the problem.

   Best wishes,

    Sameers


Sameers (theangrycodeR)
http://www.theangrycoder.com/IamAway.aspx
6 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

sqlxml @ the web & the world :: hundreds of fresh newsfeeds on ... By using the XML directive in combination with the added text you get ... If a &quot;file not found&quot; error occurs, then ensure the template or schema your ...


 
All Times Are GMT