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


Badge +1

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


 


 


 


7 replies

Badge +7

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

Badge +1

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


procInst = conK2.CreateProcessInstance("INTERNALSERVICESLeaveApproval");


can anybody please tell me how to define process name, 


INTERNALSERVICS = Project Name   ??


 LeaveApproval = Process Name ??


Thanks


 


 

Badge +5

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

Badge +7

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("ProjectNameProcessName")
        myproc.Folio = "ProcessinstanceName"
        myconn.StartProcessInstance(myproc)
        myconn.Close()

 Best regards.
 

Badge +1

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 


 

Badge +5

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

Badge +6

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.

Reply