Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.8k views
in .NET FTP by (120 points)
Hi

Currently we have an issue where the following error when trying to create a SecureFTPConnection. This only happens when the code is being run as a Windows Service.

Error: [System.NullReferenceException] "Object reference not set to an instance of an object."

Source: edtFTPnetPRO

StackTrace:

at EnterpriseDT.Util.Debug.Logger.IsEnabledFor(Level level)
at EnterpriseDT.Util.Debug.Logger.Log(Level level, String message, Object[] args)
at EnterpriseDT.Util.Debug.Logger.Info(String message)
at EnterpriseDT.Util.License.LicenseProperties.CheckLicense(String clazz, EdtProduct[] requiredProduct)
at EnterpriseDT.Net.Ftp.SecureFTPConnection.CheckLicense()
at EnterpriseDT.Net.Ftp.SecureFTPConnection.Connect()
at <Custom Code>

Logging is configured in the config file as follows. But the error still occurs even if the config is removed.


<add key="edtftp.log.filepath" value="ftplog.txt"/>
<add key="edtftp.log.level" value="Information"/>

Thanks for any help.

Chris

1 Answer

0 votes
by (162k points)
One cause might be the level - try using "INFO" instead of "Information". This is a bit of legacy code unfortunately.

What version of edtFTPnet/PRO are you using?

Categories

...