Symptoms
Smartforms suddenly stop working. There was no change to the environment that we know of.
The error message when calling a smartform is: Could not load file or assembly 'SourceCode.Forms.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d' or one of its dependencies. Access is denied.
This goes for runtime and designtime and the error is logged on both the Smartforms web server as the K2 server.
Diagnoses
Smartforms suddenly stop working. There was no change to the environment that we know of.
The error message when calling a smartform is: Could not load file or assembly 'SourceCode.Forms.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d' or one of its dependencies. Access is denied.
This goes for runtime and designtime and the error is logged on both the Smartforms web server as the K2 server.
The first time this error occurred a repair on the K2 server side solved the problem. Only a few hours later, again with no visible changes to the environment, the error reocurred. This time a repair did not help, even a reinstall on both the webserver and K2 server did not help.
Resolution
We did the following steps to establish what the underlying cause was:
- we added the K2 Runtime/Designer URLs to the Trusted Sites
- we gave permissions to the K2 Blackpearl folder
- we added the K2 Runtime/Designer URLs to the Compatibility View list
- started K2 in Console Mode
We established looking in the Console that there was an underlying Kerberos issue and did the following to fix it:
- open K2HostServer.exe.config file and replaced the following string
with