Have a Question?

If you have any question you can ask below or enter what you are looking for!

The best overloaded method match for ‘string.IsNullOrEmpty(string)’

Error Message

Exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at CloudPanel.ActiveDirectory.ADUsers.GetUser(String username)
[2018-05-14 09:07:56,856] | ERROR | CloudPanel.Modules.Company.Import.ImportModule| Error importing a list of users for baastrupvognen: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at CloudPanel.ActiveDirectory.ADUsers.GetUser(String username)
at CloudPanel.Modules.Company.Import.ImportModule.<.ctor>b__1_3(Object _)

Solution

This issue was caused by an invalid line of code in the CloudPanel.ActiveDirectory library.

This update is ONLY value for 3.2.0.256.0.