Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

New Post: Configuration Error Exception using Renci.SshNet in a CGI application

$
0
0
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.

Viewing all articles
Browse latest Browse all 2955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>