Dear all,
I have a web application on the same server of my k2 server. I have set "<identity impersonate="true"/>" in the web.config and the "authentication" in the IIS has "ASP.NET impersonation" set to "enabled". From the web application I use the following code to start a process:
Dim oConn As SourceCode.Workflow.Client.Connection = New SourceCode.Workflow.Client.Connection()
Dim oProcInst As SourceCode.Workflow.Client.ProcessInstance
oConn.Open(ConfigurationManager.AppSettings("K2Server").ToString())
oConn.ImpersonateUser(oRequest.Properties("VAID").Value)
oProcInst = oConn.CreateProcessInstance("K2ProcessProcessA")
oProcInst.Folio = oRequest.Properties("RequestNo").Value
oConn.StartProcessInstance(oProcInst)
It return an error of "NT AUTHORITYIUSR does not have permissions to impersonate user " at "oConn.ImpersonateUser(oRequest.Properties("VAID").Value)"
Can anyone advice on this? Thanks.