Here is the full error:
Overload resolution failed because no Public 'UrlEncode' can be called with these arguments:
'Public Shared Function UrlEncode(bytes As Byte()) As String':
Argument matching parameter 'bytes' cannot convert from 'DBNull' to 'Byte()'.
'Public Shared Function UrlEncode(str As String) As String':
Argument matching parameter 'str' 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 'UrlEncode' can be called with these arguments:
'Public Shared Function UrlEncode(bytes As Byte()) As String':
Argument matching parameter 'bytes' cannot convert from 'DBNull' to 'Byte()'.
'Public Shared Function UrlEncode(str As String) As String':
Argument matching parameter 'str' cannot convert from 'DBNull' to 'String'.
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: Overload resolution failed because no Public 'UrlEncode' can be called with these arguments:
'Public Shared Function UrlEncode(bytes As Byte()) As String':
Argument matching parameter 'bytes' cannot convert from 'DBNull' to 'Byte()'.
'Public Shared Function UrlEncode(str As String) As String':
Argument matching parameter 'str' 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) +469
Microsoft.VisualBasic.CompilerServices.OverloadResolution.ResolveOverloadedCall(String MethodName, MemberInfo[] Members, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure) +99
Microsoft.VisualBasic.CompilerServices.NewLateBinding.ResolveCall(Container BaseReference, String MethodName, MemberInfo[] Members, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, BindingFlags LookupFlags, Boolean ReportErrors, ResolutionFailure& Failure) +142
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +594
ASP.compstats_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) +790
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053