What went wrong; cannot start K2 BlackPearl server service from services or from the start menu.

  • 23 June 2009
  • 2 replies
  • 16 views

Badge +11

hi


the log file contains the following error:


"1763107","2009-06-23 05:04:27","Error","System","2001","ServerStartError","SourceCode.Hosting.Server.Runtime.HostServerEngine.StartHostServer","2001 Error Starting Host Server: The section is marked as being protected, but it does not have the correct format. It should contain only the <EncryptedData> child node. (C:Program FilesK2 blackpearlHost ServerBinK2HostServer.config line 16)","system","172.16.18.197","es-sys330:C:Program FilesK2 blackpearlHost ServerBin","1763107","6c40381969594483acadc7562536273f",""


 


below is the k2hostserver.config file, line 16 contains the "EncryptedData" string


<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="externalMarshalling" type="SourceCode.CustomConfigClasses.HostServerExternalMarshalHandler, SourceCode.CustomConfigClasses" />
    <section name="serverDependencies" type="SourceCode.CustomConfigClasses.HostServerServerDependenciesHandler, SourceCode.CustomConfigClasses" />
  </configSections>
  <!-- Host Server DB Connection Settings -->
  <!--
  **** USE THE SETTINGS BELOW TO REPLACE ENCRYPTED SECTION..
  **** CONNECTION STRINGS WILL AUTOMATICALLY BE ENCRYPTED ON STARTUP..
    <connectionStrings>
      <add name="HostserverDB" connectionString="Data Source=[SQLSERVER];Initial Catalog=HostServer_Beta2;Integrated Security=SSPI;Pooling=True;" providerName="System.Data.SqlClient" />
    </connectionStrings> 
  -->
  <connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider">
    <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#">
      <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
      <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
        <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
          <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
          <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
            <KeyName>Rsa Key</KeyName>
          </KeyInfo>
          <CipherData>
            <CipherValue>qMkkx9bqB9F37T5EbvjReXdv8YSg5a3aDmoAzuEUiQO1etcb5nAB2IZeHZ+Y79dML2jvSkYgB8PWM5nOUpXkYcN2qbV3b8ttdVt3vnRHySjl5MivCYBNQ9YOCb5vkhO04F1vSOc7O/FyYAywoQMe+CZI1qITxVTklACK3L+Y9CU=</CipherValue>
          </CipherData>
        </EncryptedKey>
      </KeyInfo>
      <CipherData>
        <CipherValue>B9xl4i9g53mh8wLHw/AL5cP+dRSKai1XsG1X6m3mHmQ=</CipherValue>
      </CipherData>
    </EncryptedData>
    <add name="HostserverDB" connectionString="Data Source=ES-SYS451CSPD;Initial Catalog=HostServer;uid=sa;pwd=sa" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="addomain" value="CSPD" />
    <add key="applicationdomain" value="CSPD" />
    <add key="dependancyservice" value="SourceCode.Hosting.Services.DependancyService" />
    <add key="port" value="5555" />
    <add key="sessiontimeout" value="20" />
    <add key="useassemblyregistration" value="false" />
    <add key="AlwaysUseDefaultLabel" value="true" />
    <add key="dbconnretries" value="100" />
    <add key="dbconnretrydelay" value="30000" />
  </appSettings>
  <externalMarshalling>
  </externalMarshalling>
  <serverDependencies>
    <serverDependency typeName="SourceCode.Security.UserRoleManager.Runtime.UserRoleManagerServer" />
    <serverDependency typeName="SourceCode.Dependancy.Runtime.DependancyServer" />
    <serverDependency typeName="SourceCode.Categories.Runtime.CategoryServer" />
  </serverDependencies>
</configuration>


2 replies

Badge +11

Any body...all my work is halted.


i even commented the connection strings and added mine:


<add name="HostserverDB" connectionString="Data Source=PC-451CSPDTY;Initial Catalog=HostServer;uid=sa;pwd=pass@word0" providerName="System.Data.SqlClient" />


 


according to the following link.. but it didnt work either.


http://www.k2underground.com/blogs/blackbelt/archive/2008/04/16/logging-framework-made-easy.aspx 

Badge +11
Does kasperski has any influense on k2 server or any server like sql2005 or moss 2007.

Reply