Troubleshooting: Cobra Web Service Fails

The following troubleshooting topics are included on this page:

Accessing the Cobra Web Service Fails When You Verify Components

The Cobra Web Service will fail if:

Check whether the Cobra Web Service is running. If it is not, start the service and see if that resolves the issue. If it does not solve the problem, check the following:

Cobra Web Service Fails with a Framework Exception Error

The call to web service returns the following framework exception:

The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

There are not enough details to discern the error.

To turn on tracing and send the resulting trace log to a Deltek Support Services analyst:

Writing trace files may lock resources exclusively and may cause severe performance issues. Tracing should only be used to recreate an issue and should then be turned off. See steps further down to turn tracing off.
  1. On the PM Compass Application Server, open Windows Services and look for the Cobra Web Services service.

  2. Stop the service.

  3. Note the location of the executable under "path to executable" and open that directory in Windows Explorer.

  4. Create a copy of the Cobra.WebService.Host.exe.config file.

  5. You will need this in step 11.

  6. Open the Cobra.WebService.Host.exe.config fileusing Notepad.

  7. Place your cursor at the end of the very first line (which is <configuration>) and press Enter to create a new line.

  8. Paste the lines below into the file and save the file. Make sure that the referenced directory in the text (highlighted below) exists on the server.

  9. <system.diagnostics>

    <sources>

    <source name="System.ServiceModel"

    switchValue="Information, ActivityTracing"

    propagateActivity="true">

    <listeners>

    <add name="traceListener"

    type="System.Diagnostics.XmlWriterTraceListener"

    initializeData="E:\temp\CobraTraces.svclog" />

    </listeners>

    </source>

    </sources>

    </system.diagnostics>

  10. Start the Cobra Web Service.

  11. Reproduce the error.

  12. Stop the Cobra Web Service.

  13. Replace the edited Cobra.WebService.Host.exe.config file with the copied file from step 4.

  14. Start the Cobra Web Service again.

  15. Retrieve the CobraTraces.svclog file from the location in the above pasted text (step 7) and send it to a Deltek Support Services analyst.

To turn off tracing after sending the resulting trace log to a Deltek Customer Success analyst:

  1. On the PM Compass Application Server, open Windows Services and look for the Cobra Web Service service.

  2. Stop the service.

  3. Note the location of the Executable under "path to executable" and open that directory in Windows Explorer.

  4. Replace the edited Cobra.WebService.Host.exe.config file with the copied version of the original.

  5. If you do not have the original copy, perform the following steps:

  6. a. Open the Cobra.WebService.Host.exe.config file using Notepad.

    b. Look for the entries that are the same as the text below (they should be at the beginning of the file).

    c. Place your cursor at the start of the line beginning with the first line below and select the contents that is the same as the lines below:

    <system.diagnostics>

    <sources>

    <source name="System.ServiceModel"

    switchValue="Information, ActivityTracing"

    propagateActivity="true">

    <listeners>

    <add name="traceListener"

    type="System.Diagnostics.XmlWriterTraceListener"

    initializeData="E:\temp\CobraTraces.svclog" />

    </listeners>

    </source>

    </sources>

    </system.diagnostics>

    d. Delete the selection.

    e. Save the file.

  7. Start the Cobra Web Service.

For more information, see the Microsoft article titled, Configuring Tracing.


Learn more about...