Como o podemos ajudar hoje?

Enabling WCF Tracing for WebRealTime Services in Power Monitoring Expert

Issue
Looking to enable WCF [Windows Communication Foundation] Tracing for WebRealTime Services in Power Monitoring Expert

Product Line
StruxureWare Power Monitoring Expert

Environment

Power Monitoring Expert 7.2

Power Monitoring Expert 8.x

Power Monitoring Expert 9.x

Power Monitoring Expert 2020

Power Monitoring Expert 2021

Power Monitoring Expert 2022

Power Monitoring Expert 2023

Power Monitoring Expert 2024



Cause
Enabling the WCF Tracing for WebRealTime Service in PME allows the user to collect and analyze diagnostic data from PME web applications in order to resolve technical issues.

Resolution
*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop). ​

Enable WCF Tracing
1. Stop the Application Modules CoreServicesHost, DataServicesHost, andProviderEngineHost services.
2. Make a backup copy of the Web.config file for the WebRealTime service, which you can find at the following location: <PME installation folder>\system\WebServices
3. Add the following section to the Web.config file:

<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "C:\Log\WebRealTimeTrace.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>


NOTE:  You can change where the trace file gets saved to on the hard drive by changing the value for initializeData.

4. Enable the IncludeExceptionDetailInFaults by referring to the steps below where minor modification will be performed to the 'Web.config' file for the Web real-time service:

  • Make a backup copy of the Web.config file for the WebRealTime service, which you can find at the following location: <PME installation folder>\system\WebServices
    E.g. C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\system\WebServices\Web.config
  • Perform another modification to the Web.config file in order to include detailed exception information:
    Find the <behaviors> section underneath <system.serviceModel>
  • Change the includeExceptionDetailInFaults value to "true" as in the following (changes are underined):
    • <behaviors>
      <serviceBehaviors>
      <behavior name="">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
      </behavior>
      <behavior name="metadata">
      <serviceMetadata httpsGetEnabled="true" httpGetEnabled="true" />
      </behavior>
      </serviceBehaviors>
      </behaviors>

5. Run the iisreset command from an elevated command prompt.
6. Start the ApplicationModules services previously stopped in step 1.

Start a network trace in Internet Explorer by following the instructions below:
1. Log into Web Applications and navigate to the Tables tab.
2. Press the F12 key and a new section will appear at the bottom of the screen as shown below.

Image

3. Click the "Start capturing" button and diagnostic information will appear in the trace at the bottom of the screen:

Image

To stop tracing, click the "Stop capturing" button.

To stop the tracing, follow the steps below:
1. Stop the three ApplicationModules services
2. Restore the backup copy of the Web.config file for the WebRealTime service which was backed up earlier, to the following location: <PME installation folder>\system\WebServices

-OR-

  • Remove the following section to the Web.config file:

<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="traceListener"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "C:\Log\WebRealTimeTrace.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>

  • Modify the includeExceptionDetailInFaults value to "true" as in the following (changes are underlined):

<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="metadata">
<serviceMetadata httpsGetEnabled="true" httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>

Schneider Electric Portugal

Explorar mais
Gama:
Explorar mais
Gama:

Precisa de ajuda?

Precisa de ajuda?

Ferramenta de seleção de produtos

Ferramenta de seleção de produtos

Encontre rápida e facilmente os produtos e acessórios certos para as suas aplicações.

Obter um Orçamento

Obter um Orçamento

Inicie o seu pedido de contacto online e um especialista irá contactá-lo.

Onde adquirir?

Onde adquirir?

Encontre facilmente o distribuidor mais próximo da Schneider Electric perto de si.

Centro de ajuda

Centro de ajuda

Encontre recursos de apoio para todas as suas necessidades, num único local.

  • Documentação dos Produtos
  • Transferências de Software
  • Ferramenta de Seleção de Produtos
  • Substituição e Troca do Produto
  • Centro de Ajuda e de Contacto
  • Encontre os nossos escritórios
  • Obter um orçamento
  • Onde adquirir
  • Comunidade Schneider Electric
  • Carreiras
  • Perfil da empresa
  • Comunicar uma má conduta
  • Acessibilidade
  • Newsroom
  • Investidores
  • EcoStruxure
  • Pesquisa de emprego
  • Blogue
  • Política de privacidade
  • Aviso sobre Cookies
  • Termos de utilização
  • Alterar suas configurações de cookie