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.
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)"
The following symptoms can be seen:
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 Files\Reference Assemblies\SourceCode