CMS AND DMS INSTALATION MANUEL DB restore Restore the

CMS AND DMS INSTALATION MANUEL
DB restore
Restore the databases that are used for DMS and CMS systems eInspection (eInspection22112012.bak)
and eInspectionArchive (eInspectionArchive22112012.bak).
Create some Sql server user (or use existing one) and map it to the restored DB’s (for development
we’ve used user semos)
Inspection integration service
The publish of inspection integration service is stored in InspectionIntegrationService.rar archive.
Configure new web site on some available port (1919 on development server) in IIS that points to the
directory where files from this archive are located.
-
Web.config configuration:
<appSettings>
<add key="logerrorPath" value="C:\\InspectionIntegrationLog\\log.txt"/>
</appSettings>
The logerrorPath key is used for configuration of path to text file which is used for logging errors that are
raised from service.
<connectionStrings>
<add name="eInspection" connectionString="Data Source=192.168.1.134;Initial
Catalog=eInspection;User Id=semos;Password=semos;" providerName="System.Data.SqlClient"/>
</connectionStrings>
Change the connection string with the settings that are in accordance with client’s server properties.
<services>
<!-- Note: the service name must match the configuration name for the service
implementation. -->
<service name="eInspection.IntegrationServices.inspectionIntegrationService"
behaviorConfiguration="ServiceBehaviors" >
<!-- Add the following endpoint. -->
<!-- Note: your service must have an http base address to add this endpoint. -->
<endpoint
contract="eInspection.IntegrationServices.IInspectionIntegrationService"
binding="basicHttpBinding" bindingConfiguration="defaultBinding"
address="http://192.168.1.134:1919/inspectionIntegrationService.svc" />
</service>
</services>
Change the endpoint’s ip address.
eInspection service
eInspectionService is used by CAMS module for communication with eInspection database.
The publish for eInspectionService is stored in eInspectionServices.rar archive. Configure new web site
on some available port (10117 on development server) in IIS that points to the directory where files
from this archive are located.
-
Web.config configuration:
<connectionStrings>
<add name="netTiersConnectionString" connectionString="Data
Source=192.168.1.134;Initial Catalog=eInspection;User Id=semos;Password=semos"/>
</connectionStrings>
Change the connection string with the settings that are in accordance with client’s server properties.
CAMS module
The publish for CAMS module is stored in InspectionWebPublish.rar. Copy contents without web.config
to the folder where site collection for eInspection is configured (port 80).
-
Web.config configuration:
Use web.config from 118 publish:
Keys used for eInspection
<httpHandlers>
<!--eInspection-->
<add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v9.1,
Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377C8E3B72B4073" verb="GET"
path="DX.ashx" validate="false" />
<!--End eInspection-->
<add verb="*" path="Reserved.ReportViewerWebControl.axd"
type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
……
<httpModules>
<!--eInspection-->
<add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v9.1,
Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377C8E3B72B4073"
name="ASPxHttpHandlerModule" />
<!--End eInspection-->
</httpModules>
…….
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService1" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192"
maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
<binding name="BasicHttpBinding_IInspectionIntegrationService" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://win-qq6la3dvtbo:4567/Service1.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
contract="moduleIntegration.IService1" name="BasicHttpBinding_IService1" />
<!--<endpoint address="http://192.168.1.134:1919/inspectionIntegrationService.svc"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IInspectionIntegrationService"
contract="inspectionIntegrationService.IInspectionIntegrationService"
name="BasicHttpBinding_IInspectionIntegrationService" />-->
</client>
<behaviors>
<serviceBehaviors>
<behavior name="aaa">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
</system.serviceModel>
Change endpoint address
…..
<appSettings>
<!--eInspection-->
<add key="wcfUrl" value="http://win-qq6la3dvtbo:10117" />
Change wcfURL to url where eInspectionServices is configured
<add key="AppRoot" value="http://win-qq6la3dvtbo/CAMS/" />
<add key="PortalRoot" value="http://win-qq6la3dvtbo/" />
<add key="ErrorLogUrl" value="\\winqq6la3dvtbo\InspectionIntegrationLog\eInspectionLog.txt" />
<add key="DocSetSiteUrl" value="DocumentSet/" />
<add key="InternalDocumentsLibrary" value="InternalDocuments" />
Include the following keys:
<add key="adminUser" value="Administrator"/> - UserName of account with AD
permissions
<add key="adminPassword" value="123Admin"/> - Password of account with AD
permissions
<add key="domainName" value="ikub.local"/> - name of the domain
<add key="logerrorPath" value="C:\\InspectionIntegrationLog\\logApp.txt"/>location to text file used for logging errors
<!--End eInspection-->
<add key="FeedCacheTime" value="300" />
<add key="FeedPageUrl" value="/_layouts/feed.aspx?" />
<add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" />
<!-<add key="ReportViewerMessages"
value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages,
Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" /> -->
<add key="aspnet:UseStrictParserRegex" value="true" />
</appSettings>
-
v4.master Configuration
Copy UserScripts folder in C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\14\template\layouts.
Edit the eInspection’s root v4.master in Sharepoint designer. Add references to client scripts library like
on screen below.
DMS module
On the new created web application create site collection. Name the site collection sea, i.e “/sites/sea”
(this way there will be less changes in the web config). On the site collection install SmartPart feature
and activate it.
The publish for DMS module is stored in eInspectionArchive_Full.rar. Copy contents to the folder where
site collection for DMS is configured. Take the web.config file from the 10116 folder.
Enable SessionStateServices on the server and in the web.config change the server and the database in
the following line:
<sessionState mode="SQLServer" timeout="60" allowCustomSqlDatabase="true"
sqlConnectionString="Data Source=192.168.1.134;Initial
Catalog=SessionStateService_5fd131b7e2b2471bb35e576906af5832;Integrated
Security=True;Enlist=False;Connect Timeout=15" />
In the web.config change the connection strings to the appropriate server:
<connectionStrings>
<add name="ArhivaMOSS.Data.ConnectionString" connectionString="Data
Source=192.168.1.134;Initial Catalog=eInspectionArchive;uid=semos;pwd=semos" />
<add name="ConnString" connectionString="Data Source=192.168.1.134;Initial
Catalog=eInspectionArchive;User ID=semos;Password=semos;"
providerName="System.Data.SqlClient" />
</connectionStrings>
These are the keys from the web.config that the application is using:
-
<add key="ArhivaRoot" value="http://win-qq6la3dvtbo:10116/sites/sea/" />
<add key="ArhivaAfterRoot" value="sites/sea/" />
<add key="Direkcija" value="Dir_" />
<add key="ScannerLibraries" value="http://winqq6la3dvtbo:10116/sites/sea/Dir_Arhiva/" />
<add key="ArhivaVirtualPath" value="/sites/sea/Dir_Arhiva" />
<add key="ServerRoot" value="http://win-qq6la3dvtbo:10116/" />
<add key="DirArhivaFullUrl" value="http://winqq6la3dvtbo:10116/sites/sea/Dir_Arhiva/" />
<add key="DirekcijaFulUrl" value="http://win-qq6la3dvtbo:10116/sites/sea/Dir_" />
<add key="logerrorPath" value="\\WIN-QQ6LA3DVTBO\10116\ArhivaLog.txt" />
<add key="eInspection.Service1" value="http://win-qq6la3dvtbo:4567/Service1.svc"/>
Change the values of the keys to correspondent with the new settings for server and port.
Creating sites for the inspectorates
The sites for the inspectorates need to be created on the root of the application. Those sites will contain
a site for the actual year and in the site for the year will be a document library where the scanned
documents will be stored.
On the root of the web application from Site Actions choose New Site. From the category list on the left
choose Blank & Custom and from the list of solutions choose the template D_Direkcija. On the right of
the popup window in the Title textbox enter the name of the inspectorate and in the URL name textbox
enter the URL in the following format Dir_01 (if the ID of the inspectorate is 1, Dir_07 if the ID of the
inspectorate is 7, Dir_14 if the ID of the inspectorate is 14). Click the More Options button. Choose the
following settings:
-
Display this site on the Quick Launch of the parent site? – No
Display this site on the top link bar of the parent site? – No
Use the top link bar from the parent site? – No
By clicking the Create button the site of the inspectorate will be created.
The next step is creating the site for the actual year that will contain the document library. On the root
of the created site for the inspectorate choose Site Actions and then New Site. From the categories list
choose Blank & Custom and choose the D_NovaDelovnaGodina template. In the Title textbox enter the
year and do the same in the URL name textbox. Click the More Options button. Choose the following
settings:
-
Display this site on the Quick Launch of the parent site? – Yes
Display this site on the top link bar of the parent site? – No
Use the top link bar from the parent site? – No
By clicking the Create button the site of the year with the document library will be created.
To check which inspectorate sites are already created on the root of the application choose All Site
Content and in the section Sites and Workspaces you can see the created sites
Important:
1. Creating of the inspectorate site and the site for the year must be done before the inspectorates
start with entering and scanning documents.
2. Creating of the year site for all of the inspectorates must be done at the end of the year for the
next year. If not the inspectorates won’t be able to scan documents.