Skip to main content

Hi,


When an existing solution is being opened on a machine where K2 related components were newly installed getting the below error:
Open Failed : Open may only be called on a primary login
   at SourceCode.EnvironmentSettings.Client.EnvironmentSettingsManager.InitializeSettingsManager(Boolean connectToServer)


   at SourceCode.Workflow.Design.Mail.MailEventItem.GetEnvironmentSmartObjectServer(IServiceProvider provider)
   at SourceCode.Workflow.Design.Mail.MailEventItem.get_Server()
   at SourceCode.Workflow.Design.Mail.MailEventItem.PrepareConfigurationForBuild()
   at SourceCode.Workflow.Authoring.ExecutableItem.SourceCode.Workflow.Authoring.IExtenderConfigProvider.PrepareConfigurationForBuild()


   at SourceCode.Workflow.Authoring.Design.Serialization.ExecutableItemCodeGenerator.ExtenderCodeGenerator.Generate(CodeTypeDeclarationCollection types, GenerationOptions options)


   at SourceCode.Workflow.Authoring.Design.Serialization.ExecutableItemCodeGenerator.Generate(CodeTypeDeclarationCollection types, GenerationOptions options)


   at SourceCode.Workflow.Authoring.ExecutableItem.Generate(CodeTypeDeclarationCollection types, GenerationOptions options)


   at SourceCode.Workflow.Authoring.Design.Serialization.ProcessCodeGenerator.Generate(GenerationOptions options)
   at SourceCode.Workflow.Authoring.Process.OnLoad(ISerializationInfo content)
   at SourceCode.Framework.SerializationInfo2.Load(PersistableObject instance, XmlReader reader)
   at SourceCode.Framework.SerializationInfoProvider.Load(PersistableObject instance, XmlReader reader)
   at SourceCode.Framework.SerializationInfoProvider.Load(TextReader reader)
   at SourceCode.ProjectSystem.ProjectFile.Open(TextReader reader)
   at SourceCode.ProjectSystem.ProjectFile.Open(Boolean showDesigner)
   at SourceCode.DeploymentTasks.Compiler.WorkflowCompiler.Execute()
        C:Program FilesMSBuildSourceCodev3.5ProjectSystem.targets  18      6       UBS.FloCo.Workflows

Can someone please advise what might be going wrong?
The code was saved onto Visual Source Safe initially but now Tortoise Sub version is being used, has the error got something to do with bindings still pointing to VSS still??
Please suggest.


Thanks.

hi,


What is the current build of you k2 server?


If you running the process from a client machine have the client component been updated as well?


 


Hi,


Thank you for your response.
Currently using K2 blackpearl 4.5 (4.10060.1.0) with Update KB001040.


Yes, client component is installed.

I found somewhere that by making changes a setting called "UserServerBrowser" with the correct connection string in file "ConfigurationManager.config" located in "Documents And Settings/All Users/ApplicationData/SourceCode " would resolve this issue. But i am unable to find that file at all.
Please suggest.


Thank you.


the file you are looking for is inside


e.g. C:Program Files(x86)K2 BalckpearlSetupConfigurationBackup130814_1 Drive-CProgramDataSourceCodeConfigurationManager.config


In your case the path might differ, this was a known issue, there is a fix in later updates of K2 blackpearl. please reply if you found the file and was I helpful


 


Reply