Hi,
I included Renci.SshNet in a CGI application in order to implement an SFTP client in it, but when I invoke the Connect() method on SftpClient object I get this System.Configuration.ConfigurationErrorsException:
Configuration System failed to initialize - in System.Configuration.ConfigurationManager.EnsureConfigurationSystem()
in System.Configuration.ConfigurationManager.PrepareConfigSystem()
in System.Configuration.ConfigurationManager.GetSection(String sectionName)
in System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)
in System.Net.Configuration.SettingsSectionInternal.get_Section()
in System.Net.NetworkingPerfCounters..ctor()
in System.Net.NetworkingPerfCounters.CreateInstance()
in System.Net.NetworkingPerfCounters.get_Instance()
in System.Net.Sockets.Socket.InitializeSockets()
in System.Net.IPAddress.InternalParse(String ipString, Boolean tryParse)
in System.Net.IPAddress.TryParse(String ipString, IPAddress& address)
in Renci.SshNet.Extensions.GetIPAddress(String host)
in Renci.SshNet.Session.SocketConnect(String host, Int32 port)
in Renci.SshNet.Session.Connect()
I resolved this exception adding a CGI mapping handler to the site where my CGI app runs under IIS6, but this workaround doesn't works on IIS7.
Regards.
Emanuele.
I included Renci.SshNet in a CGI application in order to implement an SFTP client in it, but when I invoke the Connect() method on SftpClient object I get this System.Configuration.ConfigurationErrorsException:
Configuration System failed to initialize - in System.Configuration.ConfigurationManager.EnsureConfigurationSystem()
in System.Configuration.ConfigurationManager.PrepareConfigSystem()
in System.Configuration.ConfigurationManager.GetSection(String sectionName)
in System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)
in System.Net.Configuration.SettingsSectionInternal.get_Section()
in System.Net.NetworkingPerfCounters..ctor()
in System.Net.NetworkingPerfCounters.CreateInstance()
in System.Net.NetworkingPerfCounters.get_Instance()
in System.Net.Sockets.Socket.InitializeSockets()
in System.Net.IPAddress.InternalParse(String ipString, Boolean tryParse)
in System.Net.IPAddress.TryParse(String ipString, IPAddress& address)
in Renci.SshNet.Extensions.GetIPAddress(String host)
in Renci.SshNet.Session.SocketConnect(String host, Int32 port)
in Renci.SshNet.Session.Connect()
I resolved this exception adding a CGI mapping handler to the site where my CGI app runs under IIS6, but this workaround doesn't works on IIS7.
Regards.
Emanuele.