using object-model, we create sitecollections. We have trusts towards another domain and therefore had to use “stsadm -o setapppassword -password {password}”  on the application server to complete the trust.

However, creating the sitecollection resulted in : Microsoft.SharePoint.SPException: Cannot retrieve the information for application credential key.     at Microsoft.SharePoint.Administration.SPCredentialManager.DecryptWithApplicationCredentialKey(Byte[] …)

What is the issue? “stsadm -o setapppassword -password {password}” should be run on each server!! That solved the problem.