System.Reflection.AmbiguousMatchException: Ambiguous matching in method resolution
at System.Reflection.Binder.FindMostDerivedMatch (System.Reflection.MethodBase[] match) [0x00000] in <filename unknown>:0
at System.MonoType.GetMethodImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in <filename unknown>:0
at System.Type.GetMethod (System.String name, BindingFlags bindingAttr) [0x00000] in <filename unknown>:0
at System.Web.UI.TemplateControl.CollectAutomaticEventInfo () [0x00000] in <filename unknown>:0
at System.Web.UI.TemplateControl.WireupAutomaticEvents () [0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Try
Response.Write("Your ASP.NET version is: " & System.Environment.Version.ToString())
Catch ex As Exception
Response.Write(ex.ToString())
End Try
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ASP.Net Test</title>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Try
Response.Write("Your ASP.NET version is: " & System.Environment.Version.ToString())
Catch ex As Exception
Response.Write(ex.ToString())
End Try
End Sub
</script>
</head>
<body>
<form id="form1" runat="server">
</form>
</body>
</html>
Hi,
I tried the tutorial but when I try to run version.aspx I get an System.Reflection.AmbiguosMatchException
http://kebinuchiousu.x10hosting.com/version.aspx
This is the code for version.aspxCode:System.Reflection.AmbiguousMatchException: Ambiguous matching in method resolution at System.Reflection.Binder.FindMostDerivedMatch (System.Reflection.MethodBase[] match) [0x00000] in <filename unknown>:0 at System.MonoType.GetMethodImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in <filename unknown>:0 at System.Type.GetMethod (System.String name, BindingFlags bindingAttr) [0x00000] in <filename unknown>:0 at System.Web.UI.TemplateControl.CollectAutomaticEventInfo () [0x00000] in <filename unknown>:0 at System.Web.UI.TemplateControl.WireupAutomaticEvents () [0x00000] in <filename unknown>:0 at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000] in <filename unknown>:0 at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0
Code:<%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Try Response.Write("Your ASP.NET version is: " & System.Environment.Version.ToString()) Catch ex As Exception Response.Write(ex.ToString()) End Try End Sub </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>ASP.Net Test</title> <script runat="server"> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Try Response.Write("Your ASP.NET version is: " & System.Environment.Version.ToString()) Catch ex As Exception Response.Write(ex.ToString()) End Try End Sub </script> </head> <body> <form id="form1" runat="server"> </form> </body> </html>
sir y suspended my username
AutoEventWireup="true" CodeFile="HelloWorld.aspx.cs" Inherits="HelloWorld" %>