Unable to Browse the Service

Jun 4, 2008 at 4:15 PM

Hi ,

I have both , Repository and Registry Services started. But wen i browse the url (http://localhost:44444/XdsService/XDSRepository) ,  im getting 
"page cannot be displayed".I checked event viewer and it reported

Unable to bind to the underlying transport for 0.0.0.0:80. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine. The data field contains the error number.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

I uninstalled  both the services , stopped the IIS. I installed the Repository and Registry Service again . And now I browse the url (http://localhost:44444/XdsService/XDSRepository) it works fine(with IIS stopped)

Is there a way that IIS and windows Services(Repository,Registry) work without stopping either of them.
Can u please Share your ideas on this.

Cheers,
Niresh    

Coordinator
Jun 6, 2008 at 6:57 AM

Hi Niresh,

Try with a different port number, may be in between 8080 - 8089. Also if you are not able to browse then check your mex endpoint is properly configured.

Regards,
Sachin Joshi

Jun 9, 2008 at 9:03 AM
Hi Sachin ,

I have changed the port number as  mentioned , but still im not able to browse . The same project when run on my friend's machine , it works .
I have pasted the Repository App config file for your reference .

 

<?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>

 <connectionStrings>
  <add name="XDSRepository" connectionString="Database=XDSRepositoryDB;Server=DEV-CHEN-NB092\SQLEXPRESS;Integrated Security=SSPI"
    providerName="System.Data.SqlClient" />
  <add name="ATNA" connectionString="Database=XDSRepositoryDB;Server=DEV-CHEN-NB092\SQLEXPRESS;Integrated Security=SSPI"
    providerName="System.Data.SqlClient" />
 </connectionStrings>

 <appSettings>
  <add key="HASH_ALGORITHM" value="SHA1" />
  <add key="SYSLOG_SERVER" value="129.6.24.109" />
  <add key="SYSLOG_PORT" value="8087" />

  <!-- HTTPS/TLS -->
  <!--<add key="XDSREPOSITORY_SERVICE_ADDRESS" value="https://localhost:8081/XdsService/XDSRepository" />
  <add key="XDSREGISTRY_SERVICE_ADDRESS" value="https://localhost:8081/XdsService/XDSRegistry"/>
  <add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTPS_Endpoint"/>-->
  <!-- HTTPS/TLS -->

  <!-- HTTP -->
  <add key="XDSREPOSITORY_SERVICE_ADDRESS" value="http://localhost:8082/XdsService/XDSRepository" />
  <add key="XDSREGISTRY_SERVICE_ADDRESS" value="http://localhost:8084/XdsService/XDSRegistry"/>
  <add key ="XDSREGISTRY_ENDPOINT_NAME" value="XDSRegistry_HTTP_Endpoint"/>
  <!-- HTTP -->

 </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>

  <services>
   <service name="Microsoft.IHE.XDS.DocumentRepository.DocumentRepositoryService" behaviorConfiguration="XDSRepository_ServiceBehavior">

    <host>
     <baseAddresses>

      <!-- HTTPS/TLS -->
      <add baseAddress="https://localhost:8083/XdsService/XDSRepository" />
      <!-- HTTPS/TLS -->

      <!-- HTTP ONLY -->
      <add baseAddress="http://localhost:8082/XdsService/XDSRepository" />
      <!-- HTTP ONLY -->

     </baseAddresses>
    </host>

    <endpoint name="XDSRepository_HTTPS_Endpoint"
       address="https://localhost:8083/XdsService/XDSRepository"
       contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository"
       binding="wsHttpBinding"
       bindingConfiguration="XDSRepository_HTTPS" />

    <!-- HTTP ONLY -->

    <endpoint name="XDSRepository_HTTP_Endpoint"
       address="http://localhost:8082/XdsService/XDSRepository"
       contract="Microsoft.IHE.XDS.DocumentRepository.IDocumentRepository"
       binding="wsHttpBinding"
       bindingConfiguration="XDSRepository_HTTP" />

    <!-- HTTP ONLY -->

    <endpoint name="XDSRepository_Metadata_Endpoint"
       address="http://localhost/XdsService/XDSRepository"
       binding="mexHttpBinding"
       contract="IMetadataExchange" />

   </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="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <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:50:00" openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <reliableSession ordered="true" inactivityTimeout="00:50: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:01:00"
                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                    messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <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="524288" maxReceivedMessageSize="65536"
                    messageEncoding="Mtom" textEncoding="utf-8" useDefaultWebProxy="true"
                    allowCookies="false">
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
     <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:8085/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:8084/XdsService/XDSRegistry"
     binding="wsHttpBinding" bindingConfiguration="XDSRegistry_HTTP_Endpoint"
    contract="Microsoft.IHE.XDS.DocumentRepository.XDSRegistry.XDSRegistry"
    behaviorConfiguration="XDSRegistry_HTTPS_EndPointBehaviour"
     name="XDSRegistry_HTTP_Endpoint" />
   
  </client>

  <behaviors>

   <serviceBehaviors>
    <behavior name="XDSRepository_ServiceBehavior">
     <serviceDebug includeExceptionDetailInFaults="false" />

     <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />

     <!-- HTTP ONLY -->
     <!--<serviceMetadata httpGetEnabled="true" />-->
     <!-- HTTP ONLY -->

     <serviceCredentials>
      <serviceCertificate findValue="MyTestCert" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My" />

     </serviceCredentials>
    </behavior>
   </serviceBehaviors>

   <endpointBehaviors>
    <behavior name="XDSRegistry_HTTPS_EndPointBehaviour">
     <clientCredentials>

      <clientCertificate findValue="MyTestCert" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My" />

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

  </behaviors>

 </system.serviceModel>
</configuration>

 Regards,
 Niresh

Coordinator
Jun 9, 2008 at 11:18 AM
Hi Niresh,

It sounds strange since you are able to browse in your friend's system.
Try adding a web or service reference to an empty project, it should create the necessary proxy.
Also try giving a different address for MEX endpoint, either change the MEX endpoint port or change the complete address.

Regards,
Sachin Joshi

Jul 10, 2009 at 7:15 AM

Hi Sachinjo,

I am also having the same pboblem of Stop IIS to browse Ripository,Registry services, as per your suggestion i changed even MEXEdnpoint address.

But no use. Can you please advice on this.

Regards,

Balakrishna.