Server Error in '/' Application.

Overload resolution failed because no Public 'UCase' can be called with these arguments:
   'Public Shared Function UCase(Value As Char) As Char':
       Argument matching parameter 'Value' cannot convert from 'DBNull' to 'Char'.
   'Public Shared Function UCase(Value As String) As String':
       Argument matching parameter 'Value' cannot convert from 'DBNull' to 'String'.

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: Overload resolution failed because no Public 'UCase' can be called with these arguments:
   'Public Shared Function UCase(Value As Char) As Char':
       Argument matching parameter 'Value' cannot convert from 'DBNull' to 'Char'.
   'Public Shared Function UCase(Value As String) As String':
       Argument matching parameter 'Value' cannot convert from 'DBNull' to 'String'.

Source Error:


Line 203:            First_time_Gold_Winner = Nothing
Line 204:            If Not IsDBNull(DBRead("First_Gold_Winner_Year")) Then
Line 205:                If DBRead("First_Gold_Winner_Year") = Input_Year And UCase(DBRead("First_Gold_Winner_Abbre")) = UCase(Ride_abbr) Then
Line 206:                    First_time_Gold_Winner = "Yes"
Line 207:                Else

Source File: C:\htdocs\CaliforniaTripleCrown.org\Ride_Stats\Get_Club_Stats.vb    Line: 205

Stack Trace:


[AmbiguousMatchException: Overload resolution failed because no Public 'UCase' can be called with these arguments:
    'Public Shared Function UCase(Value As Char) As Char':
        Argument matching parameter 'Value' cannot convert from 'DBNull' to 'Char'.
    'Public Shared Function UCase(Value As String) As String':
        Argument matching parameter 'Value' cannot convert from 'DBNull' to 'String'.]
   Microsoft.VisualBasic.CompilerServices.OverloadResolution.ResolveOverloadedCall(String MethodName, List`1 Candidates, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure) +1294596
   Microsoft.VisualBasic.CompilerServices.OverloadResolution.ResolveOverloadedCall(String MethodName, MemberInfo[] Members, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure, Container BaseReference) +320
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.ResolveCall(Container BaseReference, String MethodName, MemberInfo[] Members, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure) +296
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +1301882
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +1303128
   Get_Club_Stats_Info.Get_Club_Stats_Table(Int32 Input_Year, String Ride_abbr, Int32 Club_ID) in C:\htdocs\CaliforniaTripleCrown.org\Ride_Stats\Get_Club_Stats.vb:205
   ASP.ride_stats_view_clubs_aspx.Page_Load() in C:\htdocs\CaliforniaTripleCrown.org\Ride_Stats\View_Clubs.aspx:18
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9850746
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0