Hi,
I'm having problem recently when trying to publish a workflow from SPD2013. It shows:
"Errors were found when compiling the workflow. The workflow files were saved but can not be run" and there's the detail below it:
System.InvalidOperationException:
Operation failed with error Microsoft.Workflow.Client.InternalServerException:
An internal error occured. For more details, please see the server logs.
Client ActivityId :
10e81d9c-2678-c09c-85e2-edf4fba12a43. ---> System.Net.WebException:
The remote server returned an error: (500) Internal Server Error.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResu
I used to publish workflows from SPD2013 normally, this just happen after I restarted the server until now.
Any clue around this error? Kindly help me please... :)
Thanks...
Note, here's the log from ULS:
05/23/2013 08:56:51.32 w3wp.exe (0x2328) 0x2044 SharePoint Server
Workflow Services ajre7 Exception Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. Client ActivityId : 2e221e9c-a685-c09c-85e2-e2894f039829. ---> System.Net.WebException:
The remote server returned an error: (500) Internal Server Error.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content) --- End of inner exception stack trace ---
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content) ... 2e221e9c-a685-c09c-85e2-e2894f039829
I've checked again to the Workflow events, and it looks like caused by some keyset does not exist... I've read sometimes ago about this, but forgot where it is. Maybe anyone notice about this?
Error processing management request. Method: PUT, RequestUri: http://sharepoint2013:12291/SharePoint/default/9d640f51-b709-48a0-bc86-8674e4699f34/e1b2c1e3-22d7-4208-a344-652c39ed21c5/$Activities/WorkflowXaml_8091d957_2002_4fdf_8923_76972094f689?$overwriteXClass=true,
Error: System.Security.Cryptography.CryptographicException: Keyset does not exist
at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()
at Microsoft.Workflow.Common.EncryptionHelper.DecryptStringWithCertificate(X509Certificate2 encryptionCertificate, String encryptedText)
at Microsoft.Workflow.Management.WorkflowEncryptionSettings.InitializeInternal()
at Microsoft.Workflow.Management.WorkflowServiceConfiguration.get_EncryptionSettings()
at Microsoft.Workflow.Management.WorkflowServiceConfiguration.GetResourceManagementConnectionStringFromConfig()
at Microsoft.Workflow.Management.WorkflowServiceConfiguration.get_ConfigProvider()
at Microsoft.Workflow.Management.WorkflowServiceConfiguration.GetWorkflowServiceConfiguration()
at Microsoft.Workflow.Gateway.HttpConfigurationInitializer.CreateServiceContext(String nodeId, NamespaceSender namespaceSender)
at Microsoft.Workflow.Gateway.HttpConfigurationInitializer.EnsureInitialized(String nodeId, NamespaceSender namespaceSender)
at Microsoft.Workflow.Gateway.HttpConfigurationInitializer.Initialize(HttpConfiguration config, String nodeId, NamespaceSender namespaceSender)
at Microsoft.Workflow.Gateway.Global.EnsureConfigInitialized(String nodeId)
at Microsoft.Workflow.Gateway.Global.Application_BeginRequest(Object sender, EventArgs e)