Restoring the LEAD Storage Server

Note: If you have already worked through the Changing the LEAD HTML5 Medical Viewer to use a different database schema  tutorial, then you should first work through the Restoring the LEAD HTML5 Medical Viewer to its Original State topic of that tutorial.

Step 1: Restore the Storage Server Manager so that it no longer uses MyQueryIOD.xml

   

Step 2: Restore the application configuration files to use the default storage catalog and default DataSet Schema

·         Comment out the highlighted sections in the Leadtools.Dicom.Server.exe.config

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

  <configSections>

  <section name="leadLogging" type="Leadtools.Logging.Configuration.ConfigSectionHandler, Leadtools.Logging" />

    <!--<section name="xmlStorageCatalogSettings" type="Leadtools.Medical.Storage.DataAccessLayer.XmlStorageCatalogSettings, Leadtools.Medical.Storage.DataAccessLayer" />-->

    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >

      <section name="Leadtools.Dicom.Service.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />

    </sectionGroup>

  </configSections>

       <leadLogging>

    <channels>

      <channel name="DataAccessLoggingChannel" type="Leadtools.Medical.Logging.DataAccessLayer.DataAccessLoggingChannel, Leadtools.Medical.Logging.DataAccessLayer" />

    </channels>

  </leadLogging>

  <!--<xmlStorageCatalogSettings catalogPath="C:\LEADTOOLS 18\Bin\Dotnet4\Win32\MyCatalog.xml"/>-->

  <runtime>

    <generatePublisherEvidence enabled="false"/>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

                     <dependentAssembly>

                           <assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845DCD8080CC91" culture="neutral"/>

                           <bindingRedirect oldVersion="0.0.0.0-3.5.1.0" newVersion="3.5.1.0"/>

                     </dependentAssembly>

                     <dependentAssembly>

                           <assemblyIdentity name="Microsoft.Practices.ObjectBuilder2" publicKeyToken="31BF3856AD364E35" culture="neutral"/>

                           <bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0"/>

                     </dependentAssembly>

                     <dependentAssembly>

                           <assemblyIdentity name="Microsoft.Practices.Unity" publicKeyToken="31BF3856AD364E35" culture="neutral"/>

                           <bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0"/>

                     </dependentAssembly>

              </assemblyBinding>

  </runtime>

  <appSettings>

    <add key="LicenseFile" value=""/>

    <add key="DeveloperKey" value=""/>

    <!--<add key="DataSetSchema" value=" C:\LEADTOOLS 18\Bin\Dotnet4\Win32\MyDataSet.xsd"/>-->

  </appSettings>

</configuration>

 

·         Modify CSStorageServerManagerDemo.exe.config (additions shown highlighted)

<?xml version="1.0"?>

<configuration>

  <!--<configSections>

    <section name="xmlStorageCatalogSettings" type="Leadtools.Medical.Storage.DataAccessLayer.XmlStorageCatalogSettings, Leadtools.Medical.Storage.DataAccessLayer" />

  </configSections>-->

  <xmlStorageCatalogSettings catalogPath="C:\LEADTOOLS 18\Bin\Dotnet4\Win32\MyCatalog.xml"/>

 

  <runtime>

      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

         <dependentAssembly>

            <assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845DCD8080CC91" culture="neutral"/>

            <bindingRedirect oldVersion="0.0.0.0-3.5.1.0" newVersion="3.5.1.0"/>

         </dependentAssembly>

         <dependentAssembly>

            <assemblyIdentity name="Microsoft.Practices.ObjectBuilder2" publicKeyToken="31BF3856AD364E35" culture="neutral"/>

            <bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0"/>

         </dependentAssembly>

         <dependentAssembly>

            <assemblyIdentity name="Microsoft.Practices.Unity" publicKeyToken="31BF3856AD364E35" culture="neutral"/>

            <bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0"/>

         </dependentAssembly>     

              </assemblyBinding>

   </runtime>

  <appSettings>

    <!--<add key="DataSetSchema" value=" C:\LEADTOOLS 18\Bin\Dotnet4\Win32\MyDataSet.xsd"/>-->

  </appSettings>

</configuration>

 

   

Step 3: Rebuild the CSStorageServerManagerDemo.exe with modifications

Note that you can skip this step completely, and just run the precompiled version of the demo (CSStorageServerManagerDemo_original.exe)

Step 4: Delete the following files from {LEAD Installation BIN}

Step 5: Restore GlobalPacs.config to use the original shipping database

<section name="storageDataAccessConfiguration175" type="Leadtools.Medical.DataAccessLayer.Configuration.DataAccessSettings, Leadtools.Medical.DataAccessLayer, Version=18.0.4.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907" />

 

<!--<section name="myStorageDataAccessConfiguration175" type="Leadtools.Medical.DataAccessLayer.Configuration.DataAccessSettings, Leadtools.Medical.DataAccessLayer, Version=18.0.4.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907" />-->

       

    

 

   

    <storageDataAccessConfiguration175 connectionName="LeadStorageServer18_32">

        <add productName="StorageServer" serviceName="L18_PACS_SCP32"

            connectionName="LeadStorageServer18_32" />

        <add productName="Workstation" serviceName="L18_WS_SERVER32"

            connectionName="MedicalWorkstation18_32" />

    </storageDataAccessConfiguration175>

 

  <!--<myStorageDataAccessConfiguration175 connectionName="MyDicomDb">

    <add productName="StorageServer" serviceName=" L18_PACS_SCP32" connectionName="MyDicomDb" />

  </myStorageDataAccessConfiguration175>-->

 

    <forwardConfiguration175>

      <add productName="StorageServer" serviceName="L18_PACS_SCP32" connectionName="LeadStorageServer18_32" />

      <!--<add productName="StorageServer" serviceName="L18_PACS_SCP32" connectionName="MyDicomDb" />-->

    </forwardConfiguration175>

 

Step 6: Restore the forwarding data access layer (Leadtools.Medical.Forward.DataAccessLayer ) to its original state:

Step 7: Remove the configuration assembly (My.Medical.Storage.Configuration.dll ) from the Configuration folder

Step 8: Verify that the Storage Server Manager is using the Shipping Database


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.