Skip to Content
Former Member
Jan 16, 2017 at 10:06 AM

SAP Connect .NET / Trace cannot be deactivated

1241 Views Last edit Jul 17, 2021 at 09:31 AM 2 rev

Dear all,

I'm using the SAP .NET Connector ( to make a RFC Call. The call can be executed correctly without any problems. If I change an input parameter the RFC Call creates an exception (Material not found -> NOT_FOUND) - this exception is ok and like the specification of the customer SAP developer.

The only problem is that this exception creates a trace/log file "dev_nco_rfc.log". I don't need this and I will deactivate the log file creation but I don't now how.

Therefore I added in the destination configuration the trace flag and set it to 0.


objParameters.Add(RfcConfigParameters.Trace, "0")


This doesn't work. In case of an exception this file will be created. I changed the directory via "RfcTrace.TraceDirectory = System.IO.Path.GetTempPath" to the temp folder (this works).

Therefore my question: How to deactivate the trace function?

Thank you all!

Best regards