Web Connection
Customize Error Message
Gravatar is a globally recognized avatar based on your email address. Customize Error Message
  Luca
  All
  Mar 18, 2021 @ 12:03am

Dear Rick,
I use WC 6.05
I have 4 instances active on server for every application.
Sometime I get an error invonving only one instance.

Processing Error - https://crm.dea.group/Residenziale/EditInserimentoProdotti.wc?IdRecord=696567&PrevId=SCGGNN79A22E131F

<pre>
      Error: 1
    Message: File 'tabfamiglia.dbf' does not exist.
       Code: 
    Program: onload
    Line No: 190
     Client: 213.215.165.132
Post Buffer: 
</pre>
Exception Handled by: Residenzialeprocess.OnError()

Every instance has its own ID (1844 in the example):

Please, how to insert the instance ID in error message informations?
Thank you very much for support

Gravatar is a globally recognized avatar based on your email address. re: Customize Error Message
  Rick Strahl
  Luca
  Mar 19, 2021 @ 12:59am

The instance is the Process id. You can use the wwServer::GetProcessId() method to retrieve it.

wwServer::GetProcessId

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Customize Error Message
  Luca
  Rick Strahl
  Mar 19, 2021 @ 01:11am

Many thanks again, Rick!

© 1996-2021