sundeep_ns
New member
- Joined
- Jun 20, 2008
- Messages
- 1
- Programming Experience
- Beginner
I am new to ASP.net . I am trying to open a web page which is giving the following error message: Plz review and give a possible reason behind the error. If you want to have a look at the code just let me know:
No accessible overloaded 'SqlDataAdapter.SelectCommand' is most specific for these arguments:
Public Sub set_SelectCommand(value As System.Data.SqlClient.SqlCommand)
Public Sub set_SelectCommand(value As System.Data.Common.DbCommand)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Reflection.AmbiguousMatchException: No accessible overloaded 'SqlDataAdapter.SelectCommand' is most specific for these arguments:
Public Sub set_SelectCommand(value As System.Data.SqlClient.SqlCommand)
Public Sub set_SelectCommand(value As System.Data.Common.DbCommand)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[AmbiguousMatchException: No accessible overloaded 'SqlDataAdapter.SelectCommand' is most specific for these arguments:
Public Sub set_SelectCommand(value As System.Data.SqlClient.SqlCommand)
Public Sub set_SelectCommand(value As System.Data.Common.DbCommand)]
Microsoft.VisualBasic.CompilerServices.VBBinder.BindToMethod(BindingFlags bindingAttr, MethodBase[] match, Object[]& args, ParameterModifier[] modifiers, CultureInfo culture, String[] names, Object& ObjState) +6971
Microsoft.VisualBasic.CompilerServices.VBBinder.InvokeMember(String name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object target, Object[] args, String[] namedParameters) +576
Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateSet(Object o, Type& objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, CallType UseCallType) +1250
Microsoft.VisualBasic.CompilerServices.LateBinding.LateSet(Object o, Type objType, String name, Object[] args, String[] paramnames) +27
Req_Agent.Employee.FillDataset(String strConnect, String CmdText) in C:\LESA\Source_code\RC3\Req_Agent\Employee.vb:149
Req_Agent.Employee.LoginValid() in C:\LESA\Source_code\RC3\Req_Agent\Employee.vb:89
Req_Agent.LoginMain.btnLogin_Click(Object sender, EventArgs e) in C:\LESA\Source_code\RC3\Req_Agent\LoginMain.aspx.vb:134
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746