C# 从本机ActiveX控件获取IWebBrowser2未成功

C# 从本机ActiveX控件获取IWebBrowser2未成功,c#,.net,windows,winforms,browser,C#,.net,Windows,Winforms,Browser,if(HiddenForm.configResponse!=null) userId=HiddenForm.configResponse.id; ServiceActivityInterface remoteMethods=(ServiceActivityInterface)Activator.GetObject(typeof(TrayaActivityInterface)、ProHance.ProbeProperties.AgentProperties.ServiceRemotingUrl);

if(HiddenForm.configResponse!=null) userId=HiddenForm.configResponse.id; ServiceActivityInterface remoteMethods=(ServiceActivityInterface)Activator.GetObject(typeof(TrayaActivityInterface)、ProHance.ProbeProperties.AgentProperties.ServiceRemotingUrl); 字符串webConsoleToken=remoteMethods.GetWebConsoleToken(userId); managerWorkFlowLink=HiddenForm.workflowSettingConfigResponse.workflowUrl; byte[]dataByte=GenericHelper.ConvertToUTF8(HiddenForm.LoginName+“|”+webConsoleToken); byte[]encryptedBytes=EncryptionUtility.GetInstance().EncryptData(数据字节); 字符串userAuthToken=GenericHelper.ConvertToBase64编码(encryptedBytes); ServicePointManager.ServerCertificateValidationCallback=new System.Net.Security.RemoteCertificateValidationCallback(AcceptillCertifications); 如果(!string.IsNullOrEmpty(managerWorkFlowLink)&&activeJob!=null) { authToken=“Client/tokenauth.htm?mname=ChangeState&jobId=“+activeJob.jobId+”&stateId=“+activeJob.stateId+”&processId=“+activeJob.processId+”&clientAction=“+localuserAction+”&newtoken=“+Uri.EscapeDataString(userAuthToken)); if(log.IsDebugEnabled)log.Debug(“AuthToken:+AuthToken”); this.wbStateChange.Navigate(managerWorkFlowLink+authToken); }