→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AdmJLovejoy
Champion Sweeper
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


A refresh of the page resumed operation to normal. This has happened several times.
Thanks, Jim Lovejoy __________________________________________________________________________________________________ James W. Lovejoy | IBM - Cloud Managed Services Delivery | Infrastructure Architect (Windows Server ...
5 REPLIES 5
Hemoco
Lansweeper Alumni
Meanwhile a new version has been uploaded (same url)
Just replace the website part.
AdmJLovejoy
Champion Sweeper
I'm running this on Server 2003 SP2
Thanks, Jim Lovejoy __________________________________________________________________________________________________ James W. Lovejoy | IBM - Cloud Managed Services Delivery | Infrastructure Architect (Windows Server ...
Hemoco
Lansweeper Alumni
The problem is related to the windows 2008 version issue.
A fix will be ready by tomorrow.
AdmJLovejoy
Champion Sweeper
The url is the default site page. The error is produced randomly after a page refresh. It appears that the web service (or .net framework) looses connectivity to the DB momentarily. Possibly related, I've noticed that the Lansweeperservice consumes a steady 30%(min)-80%(max) CPU utilization.
Thanks, Jim Lovejoy __________________________________________________________________________________________________ James W. Lovejoy | IBM - Cloud Managed Services Delivery | Infrastructure Architect (Windows Server ...
Hemoco
Lansweeper Alumni
Do you have the URL of the page that produced this error or do you know the steps to reproduce it?