Unable to access K2 SmartForms/Designer "1058 SourceCode.Forms.Runtime.ClientServer not hosted!"

  • 24 February 2022
  • 0 replies
  • 67 views

Userlevel 5
Badge +20
 

Unable to access K2 SmartForms/Designer - 1058 SourceCode.Forms.Runtime.ClientServer not hosted!

kbt142714

PRODUCT
K2 blackpearl
K2 smartforms
BASED ON
K2 blackpearl 4.6.11
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

After applying some coldfixes in the environment you could receive the following error message in SmartForms/Designer:

 

"1058 SourceCode.Forms.Runtime.ClientServer not hosted! More Details at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessageType CallType) at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList, MarshalMessageType CallType) at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteSessionCall(String TypeName, String MethodName, Object[] Parameters, Boolean[] NullList) at SourceCode.Forms.Client.FormsClient.DoSessionCall(String method, Object[] parameters) at SourceCode.Forms.Client.FormsClient.get_User() at SourceCode.Forms.AppFramework.ConnectionClass.GetIdentityFqn(String identityName) at SourceCode.Forms.AppFramework.ConnectionClass.GetAppPoolUser() at SourceCode.Forms.AppFramework.AnonymousAuthorizationModule.IsAnonymousForm(String name) at SourceCode.Forms.AppFramework.AnonymousAuthorizationModule.IsAnonymousAllowed(HttpRequest request) at SourceCode.Forms.AppFramework.AnonymousAuthorizationModule.OnAuthenticateRequest(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)"

Symptoms

The following symptoms can be seen: 
  • The error appeared after installation/reinstallation of coldfixes
  • After reviewing the coldfix documentation and confirming that assemblies were replaced in all the required locations by comparing file versions. (K2 installation directory, GAC)
  • Doing a K2 service restart / IIS reset / SQL server restart doesn't resolve the issue.

Troubleshooting Steps

This error message (though not referencing a particular assembly directly) means that some of the assemblies failed to load.

This can happen when a file is either missing (we assume that we confirmed that this is not the case) or blocked from load. Windows has a feature which marks files downloaded from non-trusted locations as blocked. This is driven by the alternate data streams. Windows flags files as potentially untrusted if they have been downloaded (for example) from the internet zone and will disable execution.

 

 

 

Normally all coldfix documentation suggest you make sure that the archive with coldfix was not blocked immediately after placing it onto the K2 server, before installation. This is best practice which can save you some troubleshooting time and prevent problems caused by blocked assemblies.

 

To resolve this particular issue, (as in some other cases where you suspect that one or more of the K2 assemblies are blocked) you can run Unblock-File cmdlet against the following locations (or at least eliminate the issue with blocked assemblies):

 

 

C:Program Files (x86)K2 blackpearl

C:Program FilesReference AssembliesSourceCode

C:WindowsAssemblies

C:WindowsMicrosoft.NETassembly

 


0 replies

Be the first to reply!

Reply