Skip to main content


 

Symptoms


Getting the following errors when trying to deploy SharePoint Event Integration process from Dev to Prod.
"343374","2015-09-28 14:33:44","Error","DeploymentServer","30003","DeploymentError","DeploymentServer.DeployItem(ComplexType ct)","30003 C:ProgramDataTempc25077b0437d4eeeb3847ed4890129bdDeploymentK2Project2.msbuild(69,5) : error : Task Error: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at SourceCode.Workflow.SharePoint.Common.Credentials.GetCorrectCredentials(String serviceURL, CredentialCache credentialCache, HttpWebResponse webResponse)
at SourceCode.Workflow.SharePoint.Common.Shared.HandleWebException(String siteURL, CredentialCache CredCache, DialogResultand result, HttpStatusCodeand statusCode, WebException webEx)
at SourceCode.Workflow.SharePoint.Common.Events.AddEventsToList(String workflowFullName, String listTitle, K2SPObjectType objType, K2SPEventReceiverTypee] selectedEvents, Boolean isDocumentLibrary, CredentialCache CredCache)
at SourceCode.DeploymentTasks.SharePoint.EventsService.AddEventsForListItems(EventsObject eventsObj, SharePointEventItem spEvent, String AllEvents)
at SourceCode.DeploymentTasks.SharePoint.EventsService.Execute(EventsObject eventsObj)
at SourceCode.DeploymentTasks.SharePoint.EventsTask.Execute()
InnerException:
C:ProgramDataTempc25077b0437d4eeeb3847ed4890129bdDeploymentK2Project2.msbuild(69,5) : error : Task Error: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at SourceCode.Workflow.SharePoint.Common.Credentials.GetCorrectCredentials(String serviceURL, CredentialCache credentialCache, HttpWebResponse webResponse)
at SourceCode.Workflow.SharePoint.Common.Shared.HandleWebException(String siteURL, CredentialCache CredCache, DialogResultand result, HttpStatusCodeand statusCode, WebException webEx)
at SourceCode.Workflow.SharePoint.Common.Events.AddEventsToList(String workflowFullName, String listTitle, K2SPObjectType objType, K2SPEventReceiverTypee] selectedEvents, Boolean isDocumentLibrary, CredentialCache CredCache)
at SourceCode.DeploymentTasks.SharePoint.EventsService.AddEventsForListItems(EventsObject eventsObj, SharePointEventItem spEvent, String AllEvents)
at SourceCode.DeploymentTasks.SharePoint.EventsService.Execute(EventsObject eventsObj)
at SourceCode.DeploymentTasks.SharePoint.EventsTask.Execute()
","","","HSK2:C:Program Files (x86)K2 blackpearlHost ServerBin","343374","5dcbce66e1a24dbcba1a9f8e75b4b495",""
 

Diagnoses


The issue was caused by Default Environment was set incorrectly. The default environment was set to Dev instead of Prod.
 

Resolution

Switching Default environment to Prod allowed the PandD to deploy to Prod successfully.




 
Be the first to reply!

Reply