"Exception has been thrown by the target of an invocation."

Last post 02-11-2008, 4:21 by amankazi. 7 replies.
Sort Posts: Previous Next
  •  06-20-2007, 5:14 15438

    "Exception has been thrown by the target of an invocation."

    Environment : k2.Net 2003 with SP4

    VS : 2003 

    When i try to run my planpage i recieve this error

    "Exception has been thrown by the target of an invocation." 

    Any suggestion would be highly appreciated.

     

     Best Regards

    Ashraf ul Islam

     

     

     

  •  06-20-2007, 5:27 15439 in reply to 15438

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

    Are you sure that the page and the Submit Buttom are Plan ?
     

  •  06-20-2007, 6:54 15442 in reply to 15439

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

    yes melhem, its plan page, i am getting error at

    procInst = conK2.CreateProcessInstance("INTERNALSERVICES\\LeaveApproval");

    can anybody please tell me how to define process name, 

    INTERNALSERVICS = Project Name   ??

     LeaveApproval = Process Name ??

    Thanks

     

     

  •  06-20-2007, 7:01 15443 in reply to 15438

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

    Hi,

    There could be a number of different causes for this error. Please just first check the following :

    1 : Make sure that your license key has not yet expired.

    2 : When running SP4 you will neet to apply a hotfix for the Smartforms located on the Partner & Customer Portal.

    Please let me know if you still have issues.

    Gert


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  06-20-2007, 7:13 15444 in reply to 15442

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

    This is a Plan Page :

            Dim myconn As New SourceCode.K2ROM.Connection
            Dim myproc As SourceCode.K2ROM.ProcessInstance
            Dim strCon As String
            strCon = "[;];Authentication=Windows;Domain=domain;User=administrator;Password=password"
            myconn.Open("ServerName", strCon)
            myproc = myconn.CreateProcessInstance("ProjectName\ProcessName")
            myproc.Folio = "ProcessinstanceName"
            myconn.StartProcessInstance(myproc)
            myconn.Close()

     Best regards.
     

  •  06-20-2007, 7:36 15446 in reply to 15443

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

    How can i check that my license is still valid, i can see the server configuration by browsing through

    server node (right click) --> Properties -- > General tab.

    But it doesn't tell me if it is expired or not. Thanks

     

    Best Regards

    Ashraf ul Islam 

     

  •  06-20-2007, 7:43 15447 in reply to 15446

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

    With your server properties open, you should have a K2.Net Servers List. Click on your server. It should then show you the expiry date.

    Gert


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  02-11-2008, 4:21 21773 in reply to 15444

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

    Hi,

     I was facing the simillar problem in my application, the issue was the server date and time/ Regional settings were not according to the client machine requesting for the CreatInstance method.

    The Problem is solved for me.

View as RSS news feed in XML