DesktopSample: Exception has been thrown by the target of an invocation.

Jul 6, 2009 at 5:09 AM

Hi All,

I downloaded the sample.zip & binary.zip, i load the desktop sample and immediately i get:

Exception has been thrown by the target of an invocation.

on line 18 of FriendViewer.cs which is facebookService1.ConnectToFacebook();

anyone else get this?

thanks!

 

ck

Jul 6, 2009 at 7:04 AM

This is the exception details:

 

System.Reflection.TargetInvocationException was unhandled by user code
  Message="Exception has been thrown by the target of an invocation."
  Source="mscorlib"
  StackTrace:
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Net.WebProxyScriptHelper.MyMethodInfo.Invoke(Object target, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
       at Microsoft.JScript.LateBinding.CallOneOfTheMembers(MemberInfo[] members, Object[] arguments, Boolean construct, Object thisob, Binder binder, CultureInfo culture, String[] namedParameters, VsaEngine engine, Boolean& memberCalled)
       at Microsoft.JScript.LateBinding.Call(Binder binder, Object[] arguments, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters, Boolean construct, Boolean brackets, VsaEngine engine)
       at Microsoft.JScript.LateBinding.Call(Object[] arguments, Boolean construct, Boolean brackets, VsaEngine engine)
  InnerException: System.FormatException
       Message="An invalid IP address was specified."
       Source="System"
       StackTrace:
            at System.Net.WebProxyScriptHelper.isInNetEx(String ipAddress, String ipPrefix)
       InnerException: