I am getting the following error which makes no sense.
No accessible overloaded
If you look at the error, there is one overloaded function that can be
called (int, string, int, int).
The first variable is constant that should work fine as an int and works
everywhere else.
The second variable is a string.
The third variable is a System.Int32. (from trace)
The fourth variable is a System.Int64. (from trace)
The code:
*************** *************** *************** *********
trace.warn("typ e = User - " & Session("User") .UserID.GetType .ToString())
trace.warn("typ e = ApplicantID - " &
Session("Applic antID").GetType .ToString())
HistoryLog.Writ eHistoryLog(13, "Applicatio n Filed for: " &
HeaderJobTitle. Text,Session("U ser").UserID,se ssion("Applican tID"))
*************** *************** *************** ***************
Trace results:
*************** ***********
type = User - System.Int32
type = ApplicantID - System.Int64
*************** *************
The error messages:
*************** *************** *************** ***********
Unhandled Execution Error
No accessible overloaded 'HistoryLog.Wri teHistoryLog' can be called with
these arguments without a narrowing conversion:
Public Sub WriteHistoryLog ( ByVal historyActionID As Integer, ByVal detail
As String, ByVal userID As Integer, ByVal applicantID As Integer )
Public Sub WriteHistoryLog ( ByVal historyActionID As Integer, ByVal detail
As String, ByVal firstName As String, ByVal lastName As String )
at
Microsoft.Visua lBasic.Compiler Services.VBBind er.set_Internal Throw(Exception
Value)
at Microsoft.Visua lBasic.Compiler Services.VBBind er.BindToMethod (BindingFlags
bindingAttr, MethodBase[] match, Object[]& args, ParameterModifi er[]
modifiers, CultureInfo culture, String[] names, Object& ObjState)
at Microsoft.Visua lBasic.Compiler Services.VBBind er.InvokeMember (String name,
BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object target,
Object[] args, ParameterModifi er[] modifiers, CultureInfo culture, String[]
namedParameters )
at
Microsoft.Visua lBasic.Compiler Services.LateBi nding.InternalL ateCall(Object
o, Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack, Boolean IgnoreReturn)
at Microsoft.Visua lBasic.Compiler Services.LateBi nding.LateCall( Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack)
at ASP.application CompletedView_a spx.SubmitIt_Cl ick(Object s,
ImageClickEvent Args e) in
C:\Inetpub\wwwr oot\staffingwor kshop\applicant \secure\applica tionCompletedVi ew.aspx:line
666
at System.Web.UI.W ebControls.Imag eButton.OnClick (ImageClickEven tArgs e)
at
System.Web.UI.W ebControls.Imag eButton.System. Web.UI.IPostBac kEventHandler.R aisePostBackEve nt(String
eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
at System.Web.UI.P age.ProcessRequ estMain()
*************** *************** *************** *************** *******
Here is the Function Call that is being called
Public Shared sub WriteHistoryLog (historyActionI D as Integer,detail as
String,userID as Integer,applica ntID as Integer)
What am I missing?
Thanks,
Tom