Cannot perform TestHarness

Apr 4, 2012 at 9:12 AM
Edited Apr 4, 2012 at 11:21 AM

Hi there....

i have installed and configurated the Source Code ....

i can browse the XDSRepositoryService and the XDSDocumentRegistryService via Internet Explorer, but when i try to execute the XDS.b Test Harness (e.g. "Provide and Register Set -b") i get the following Error Message

<s:Fault xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Code><s:Value>s:Receiver</s:Value><s:Subcode><s:Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="de-DE">Die von der Anmeldung angeforderte XDSRepositoryDB-Datenbank kann nicht geöffnet werden. Fehler bei der Anmeldung.Fehler bei der Anmeldung für den Benutzer 'W091131\XDSAdmin'.</s:Text></s:Reason><s:Detail><ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true" /><InnerException i:nil="true" /><Message>Die von der Anmeldung angeforderte XDSRepositoryDB-Datenbank kann nicht geöffnet werden. Fehler bei der Anmeldung.Fehler bei der Anmeldung für den Benutzer 'W091131\XDSAdmin'.</Message><StackTrace>bei System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)bei System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)bei System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)bei System.Data.SqlClient.SqlConnection.Open()bei Microsoft.Practices.EnterpriseLibrary.Data.Database.GetNewOpenConnection()bei Microsoft.Practices.EnterpriseLibrary.Data.Database.GetOpenConnection(Boolean disposeInnerConnection)bei Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteNonQuery(DbCommand command)bei Microsoft.IHE.XDS.DataAccess.RepositoryDataAccess.LogRepositoryData(DocumentRepositoryLog objDocumentRepositoryLog) in V:\source\source\DataAccess\Repository\RepositoryDataAccess.cs:Zeile 117.bei Microsoft.IHE.XDS.BusinessLogic.RepositoryLogic.LogRepositoryData(DocumentRepositoryLog objDocumentRepositoryLog) in V:\source\source\BusinessLogic\Repository\RepositoryLogic.cs:Zeile 296.bei Microsoft.IHE.XDS.BusinessLogic.RepositoryLogic.LogRolledBackData(DocumentRepositoryLog objDocumentRepositoryLog, String errorCode) in V:\source\source\BusinessLogic\Repository\RepositoryLogic.cs:Zeile 659.bei Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService.Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository.ProvideAndRegisterDocumentSet(Message msgRequest) in V:\source\source\IHE\RepositoryProfile\DocumentRepositoryService.cs:Zeile 204.bei SyncInvokeProvideAndRegisterDocumentSet(Object , Object[], Object[])bei System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[]inputs, Object[]&amp;outputs)bei System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;rpc)bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;rpc)bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp;rpc)bei System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace><Type>System.Data.SqlClient.SqlException</Type></ExceptionDetail></s:Detail></s:Fault>

 

--> O.K. that means Test Harness couldn't find the DB

My Question is....

where do i define the DB stuff?

i will post my app.config files....

Apr 4, 2012 at 11:22 AM

app.config -> TestHarness

 

<?xml version="1.0"?>
<configuration>

	<appSettings>
    
    <add key="ebRIMTransformFile" value="D:\xds\Connectathon2012\Connectathon2012\source\Testing\XDSTestHarness\TransformFiles\ebRIM_21_to30_Conversion1.xslt"/>
    <!--<add key="ebRIMTransformFile" value="D:\xds\Connectathon2012\Connectathon2012\source\Testing\XDSTestHarness\TransformFiles\ebRIM_21_to30_Conversion1"/>-->
         <add key="REPOSITORY_ENDPOINT_NAME" value="XDSRepository_HTTP_Endpoint"/>
		<add key="REGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint"/>
	</appSettings>
	<system.web>
		<webServices>
			<protocols>
				<add name="HttpGet"/>
				<add name="HttpPost"/>
			</protocols>
		</webServices>
	</system.web>
	<system.serviceModel>
		<diagnostics>
			<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"/>
		</diagnostics>

		<bindings>
			<wsHttpBinding>
				<binding name="WSHttpBinding_XDSRegistry" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
					<security mode="None">
						<transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true"/>
					</security>
				</binding>
				<binding name="XDSRegistry_HTTPS_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
					<security mode="Transport">
						<transport clientCredentialType="Certificate" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true"/>
					</security>
				</binding>
				<binding name="XDSRegistry_HTTP_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
					<security mode="None">
						<transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true"/>
					</security>
				</binding>
				<binding name="XDSRepository_HTTPS_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
					<security mode="Transport">
						<transport clientCredentialType="Certificate" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true"/>
					</security>
				</binding>
				<binding name="XDSRepository_HTTP_Endpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
					<security mode="None">
						<transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true"/>
					</security>
				</binding>
			</wsHttpBinding>
		</bindings>


		<client>
      
			<!--<endpoint address="https://localhost:9080/XdsService/XDSRegistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="clientBehaviour"/>-->
      
			<!--<endpoint address="http://localhost:1025/xdsservice/xdsregistry"
			 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
			 contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />-->

      <endpoint address="http://localhost:8080/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.XDS.Test.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint"/>
            
			<!--<endpoint address="https://localhost:9081/XdsService/XDSRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS_Endpoint" contract="Microsoft.XDS.Test.XDSRepository.XDSRepository" name="XDSRepository_HTTPS_Endpoint" behaviorConfiguration="clientBehaviour"/>-->
      
			<!--<endpoint address="http://localhost:1025/XdsService/XDSRepository"
			 binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP_Endpoint"
			 contract="Microsoft.XDS.Test.XDSRepository.XDSRepository" name="XDSRepository_HTTP_Endpoint" />-->

      <endpoint address="http://localhost:8080/XdsService/XDSRepository" binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP_Endpoint" contract="Microsoft.XDS.Test.XDSRepository.XDSRepository" name="XDSRepository_HTTP_Endpoint"/>
      
      
		</client>

		<behaviors>
			<endpointBehaviors>
				<behavior name="clientBehaviour">
					<clientCredentials>

					
            <clientCertificate findValue="8c8bc95ec118ec6fbf4d0ec46f13f22e4da619cd" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint"/>


          </clientCredentials>
				</behavior>
			</endpointBehaviors>
		</behaviors>

	</system.serviceModel>	
	
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

Apr 4, 2012 at 11:23 AM

app.config -> XDSRepositoryServiceHost

 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    <section name="storageprovider" type="Microsoft.IHE.XDS.DocumentRepository.StorageProvider.SQLProviderSection,Microsoft.IHE.XDS.DocumentRepository.StorageProvider" />
  </configSections>
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet" />
        <add name="HttpPost" />
      </protocols>
    </webServices>
  </system.web>
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Verbose,ActivityTracing">
        <listeners>
          <add type="System.Diagnostics.DefaultTraceListener" name="Default">
            <filter type="" />
          </add>
          <add name="TraceListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add initializeData="C:\Log\App_tracelog_Rep.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="TraceListener">
        <filter type="" />
      </add>
    </sharedListeners>
  </system.diagnostics>
  <connectionStrings>
    <add name="XDSRequestAsync" connectionString="Initial Catalog=XDS_Request; Server=localhost;Integrated Security=SSPI" providerName="System.Data.SqlClient" />
    <add name="XDSRepository" connectionString="Database=XDSRepositoryDB;Server=localhost;Integrated Security=SSPI" providerName="System.Data.SqlClient" />
    <add name="CONSTRING" connectionString="Initial Catalog=XDS_Request;Server=localhost;Integrated Security=SSPI" providerName="System.Data.SqlClient" />
    <!--<add name="ConnectionString" connectionString="Initial Catalog=XDS_REQUEST_C1;Data Source=ilink\sql2008;uid=sa;pwd=Enter321;Enlist=false;" providerName="System.Data.SqlClient" />-->
    <add name="ATNA" connectionString="Initial Catalog=XDSRepositoryDB;Server=localhost;Integrated Security=SSPI" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="HASH_ALGORITHM" value="SHA1" />
    <add key="SYSLOG_SERVER" value="sun1" />
    <add key="SYSLOG_PORT" value="4010" />
          
    <!-- HTTPS/TLS -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRepository" />
		<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://msft-ihe1:8081/XdsService/XDSRegistry"/>
		<add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint"/>-->
    
    <!-- HTTPS/TLS -->
    <!-- HTTP -->
    <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:9081/XdsService/XDSRepository" />-->
    <!--<add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://icw2:8443/ehealth/webservices/xdsb-registerdocuments" />-->
    <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://localhost:8080/XdsService/XDSRepository" />
    <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:8080/xdsservice/xdsregistry" /> 
    <!-- <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:9081/XdsService/XDSRepository" /> -->
    <!-- <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://localhost:9080/xdsservice/xdsregistry" /> -->
    <!-- <add key="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint" /> -->
    <!-- HTTP -->
    <!-- changes for PnR - register document set async -->
    <add key="IsAsync" value="false"/>
  </appSettings>
  <!-- This is the custom provider section which gets loaded into the QualityData.MyProviderSection Class -->
  <storageprovider defaultProvider="SQLStorageProvider">
    <!-- Change this to swap providers -->
    <providers>
      <clear />
      <!-- Here are one or more providers, each defined by its type "Class Name, DLL Name" 
         and each with settings.  Within the class, MyProviderSection, these get loaded into
         and are accessed by "Providers" property -->
      <add name="SQLStorageProvider" type="Microsoft.IHE.XDS.DocumentRepository.StorageProvider.SQLServerStorageProvider,Microsoft.IHE.XDS.DocumentRepository.StorageProvider" />
    </providers>
  </storageprovider>
  <system.serviceModel>
    <diagnostics>
      <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxSizeOfMessageToLog="50000000" />
    </diagnostics>
    <services>
      <service behaviorConfiguration="XDSRepository_ServiceBehavior"
        name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService">
        <!-- <endpoint address="https://localhost:9081/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTPS"
          name="XDSRepository_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" /> -->
        <endpoint address="http://localhost:8080/XdsService/XDSRepository"
          binding="wsHttpBinding" bindingConfiguration="XDSRepository_HTTP"
          name="XDSRepository_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository" />
        <endpoint address="http://localhost/XdsService/XDSRepository"
          binding="mexHttpBinding" name="XDSRepository_Metadata_Endpoint"
          contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <!-- <add baseAddress="https://localhost:9081/XdsService/XDSRepository" /> -->
            <add baseAddress="http://localhost:8080/XdsService/XDSRepository" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <binding name="XDSRepository_HTTPS" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
        <binding name="XDSRepository_HTTP" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" />
            <message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false" />
          </security>
        </binding>
        <!-- HTTP ONLY -->
        <binding name="XDSRegistry_HTTPS_Endpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" proxyCredentialType="None" realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />
          </security>
        </binding>
        <binding name="XDSRegistry_HTTP_Endpoint" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
          <security mode="None">
            <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <!--<endpoint address="https://icw2:8443/ehealth/webservices/xdsb-registerdocuments" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" />-->
      <!-- <endpoint address="https://localhost:9080/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTPS_Endpoint" behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour" /> -->
      <!--<endpoint address="http://localhost:8731/XDSAsyncService/Microsoft.IHE.XDS.AsyncApp.Registry/XDSRegistryAsync/"
				 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
				 contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
				 name="XDSRegistry_HTTP_Endpoint" />-->
      <!--<endpoint address="http://emc-ihe1:9092/mosaix-iti42"
				 binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
				 contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
				 name="XDSRegistry_HTTP_Endpoint" />-->
      <!--<endpoint address="http://misys3:8010/axis2/services/xdsregistryb" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />-->
      <endpoint address="http://localhost:8080/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry" name="XDSRegistry_HTTP_Endpoint" />
    </client>
    <behaviors>
      <serviceBehaviors>
        <behavior name="XDSRepository_ServiceBehavior">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
          <!-- HTTP ONLY -->
          <!--<serviceMetadata httpGetEnabled="true" />-->
          <!-- HTTP ONLY -->
          <serviceCredentials>
            <!--     <serviceCertificate findValue="99e0fb6df06d82f2a802a9e5a1ca34c8e443f4fa" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/> -->
          </serviceCredentials>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
          <clientCredentials>
              <clientCertificate findValue ="f05be3965ae2ef0c7b296a8410b120fef39442a1" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint"/>
          </clientCredentials>
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"></supportedRuntime>
  </startup>
</configuration>

Apr 4, 2012 at 11:24 AM

app.config -> XDSRegistryServiceHost

 

<?xml version="1.0"?>
<configuration>
	<configSections>
		<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
	</configSections>
	<system.diagnostics>
		<sources>
			<source name="System.ServiceModel.MessageLogging" switchValue="Verbose,ActivityTracing">
				<listeners>
					<add type="System.Diagnostics.DefaultTraceListener" name="Default">
						<filter type=""/>
					</add>
					<add name="TraceListener">
						<filter type=""/>
					</add>
				</listeners>
			</source>
		</sources>
		<sharedListeners>
			<add initializeData="C:\Log\App_tracelog_Reg.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="TraceListener">
				<filter type=""/>
			</add>
		</sharedListeners>
	</system.diagnostics>
	<connectionStrings>
		<!--<add name="XDSRegistry" connectionString="Initial Catalog=XDSRegistryDB;Data Source=ilink\sql2005;uid=admin;pwd=Enter321;"
           providerName="System.Data.SqlClient" />-->
		<add name="XDSRegistry" connectionString="Initial Catalog=XDSRegistryDB;Server=localhost;Integrated Security=SSPI" providerName="System.Data.SqlClient"/>
		<add name="ATNA" connectionString="Initial Catalog=XDSRegistryDB;Server=localhost;Integrated Security=SSPI" providerName="System.Data.SqlClient"/>
		<add name="CONSTRING" connectionString="Initial Catalog=XDS_Request;Server=localhost;Integrated Security=SSPI" providerName="System.Data.SqlClient"/>
    <!--<add name="ConnectionString" connectionString="Initial Catalog=XDS_Request;Data Source=ilink\sql2008;uid=sa;pwd=Enter321;" providerName="System.Data.SqlClient"/>-->
	</connectionStrings>
	<appSettings>
		<add key="SYSLOG_SERVER" value="misys1"/>
  	<add key="SYSLOG_PORT" value="2863"/>
   	<add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:1025/xdsservice/xdsregistry"/>
		<add key="PATIENT_ROOT_EXTENSION_SEPARATOR" value="{0}^^^&amp;{1}&amp;ISO"/>
	</appSettings>
	<system.serviceModel>
		<diagnostics>
			<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxSizeOfMessageToLog="50000000"/>
		</diagnostics>
		<services>
			<service name="Microsoft.IHE.XDS.DocumentRegistry.DocumentRegistryService" behaviorConfiguration="XDSRegistry_ServiceBehavior">
				<host>
					<baseAddresses>
						<!-- HTTPS/TLS -->
           	<!-- <add baseAddress="https://localhost:9080/xdsservice/xdsregistry"/> -->
						<!-- HTTPS/TLS -->
						<!-- HTTP ONLY -->
						<add baseAddress="http://localhost:8080/xdsservice/xdsregistry"/>
						<!-- HTTP ONLY -->
					</baseAddresses>
				</host>
       
				<!-- <endpoint name="XDSRegistry_HTTPS_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="https://localhost:9080/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTPS"/> -->
				<!-- HTTP ONLY -->
				<endpoint name="XDSRegistry_HTTP_Endpoint" contract="Microsoft.IHE.XDS.DocumentRegistry.IDocumentRegistry" address="http://localhost:8080/xdsservice/xdsregistry" binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP"/>
				<!-- HTTP ONLY -->
				<endpoint name="XDSRegistry_Metadata_Endpoint" address="http://localhost/xdsservice/xdsregistry" binding="mexHttpBinding" contract="IMetadataExchange"/>
			</service>
		</services>
		<bindings>
			<wsHttpBinding>
				<binding name="XDSRegistry_HTTPS" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
					<security mode="Transport">
						<transport clientCredentialType="Certificate" proxyCredentialType="None"/>
						<message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false"/>
					</security>
				</binding>
				<!-- HTTP ONLY -->
				<binding name="XDSRegistry_HTTP" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
					<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
					<security mode="None">
						<transport clientCredentialType="None" proxyCredentialType="None"/>
						<message clientCredentialType="None" establishSecurityContext="false" negotiateServiceCredential="false"/>
					</security>
				</binding>
				<!-- HTTP ONLY -->
			</wsHttpBinding>
		</bindings>
		<behaviors>
			<serviceBehaviors>
				<behavior name="XDSRegistry_ServiceBehavior">
					<serviceDebug includeExceptionDetailInFaults="true"/>
					<!--ilink-->
					<!--<serviceMetadata httpGetEnabled="true" />-->
					<!-- HTTP ONLY -->
					<serviceMetadata httpGetEnabled="true" httpsGetEnabled="false"/>
					<!-- HTTP ONLY -->
					<serviceCredentials>
               <!--<serviceCertificate findValue ="2da3869ff0c8b8744c598edc5ddff88fc99ebd5a" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/>-->
            <!-- <serviceCertificate findValue ="f05be3965ae2ef0c7b296a8410b120fef39442a1" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint"/> -->
         	</serviceCredentials>
				</behavior>
			</serviceBehaviors>
		</behaviors>
	</system.serviceModel>
	<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

Apr 9, 2012 at 6:08 AM

hi MWittig

you can try change  server=localhost\sqlexpress in the blcock <connectionString>in repository and registry app.configs

 

 

Oct 4, 2013 at 9:37 PM
I know this is a old post. I thought I will add comment here for people who might encounter similar issues. I was having issues getting this to run. The document contained inside the package is pretty good, but is not comprehensive. OpenSource so cannot expect more, you need to work to get it working. What I did.
  1. Followed the directions as in the documentation.
  2. Removed all refrecence to certificate and HTTPs.
  3. Had reference to Enterprise Library 3 in App.config, replaced with 5.0, after installing EL 5
        <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"/>
  1. Make a copy of the App.config file then Right clicked on the app.config in visual studio and selected "Edit Enterprise Library.." Gor some errors about connectionStrings, then from the save menu save the file. This removed the ConnectionString(dont know why it compains). I went back to the saved copy of the app.config and copied over the connectionStrings. Reopened the app.config file in "Edit Enterprise Library...? everything was fine.
  2. If you have made all necessary changes to App.cofig file, the services should run and pass the smorke test. If there are errors, the servcie will still run and you will not pass the smoke test. This happened to me, could not find the log entries. So here is what I did.
  3. In the Program.cs file under XDSDocumentRepositoryServiceHost project in VisulaStudio, uncomment the first try block and comment out the next lines which are uncommented so we dont start the service. The main should look like this
      static void Main()
        {
            try
            {
                System.ServiceModel.ServiceHost svcHost = new System.ServiceModel.ServiceHost(typeof(DocumentRepositoryService));
                svcHost.Open();
                svcHost.Close();
            }
            catch (System.Exception ex)
            {
                string t = ex.Message;
            }
            System.Console.WriteLine("service up..");
            System.Console.ReadLine();
            
           // ServiceBase[] ServicesToRun;

           // // More than one user Service may run within the same process. To add
           // // another service to this process, change the following line to
           // // create a second service object. For example,
           // //
           // //   ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()};
           // //

           //ServicesToRun = new ServiceBase[] { new XDSDocumentRepositoryServiceHost() };

           //ServiceBase.Run(ServicesToRun);
         }
  1. Now run this project under debugger and stop step through, if you have issues in your config file it will throw Exceptions and looking at the exceptions you will be able to tell what to fix. I had in one place still left the HTTPS entry and it was throwing error.
Once you fix the errors it works like a charm. Good luck.