Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

ChrisTradar

Posts

1

Joined

Fri Jun 29, 2012 10:55 pm

System.NullReferenceException at Logger.IsEnabledFor(Level)

by ChrisTradar » Fri Jun 29, 2012 11:03 pm

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
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: System.NullReferenceException at Logger.IsEnabledFor(Lev

by support2 » Mon Jul 02, 2012 10:48 am


Who is online

Users browsing this forum: No registered users and 40 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron