Unable to access K2 SmartForms/Designer - 1058 SourceCode.Forms.Runtime.ClientServer not hosted!
kbt142714
PRODUCTIssue
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 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.
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