Submit a ticketCall us

WebinarUpcoming Webinar: How Help Desk and Remote Support Pays for Itself

Learn how help desk software can simplify ticketing management, allow you to track hardware and software assets, and accelerate the speed of IT support and service delivery. Gain insights on how remote support tools allow your IT team to maximize their efficiency and ticket resolution by expediting desktop troubleshooting, ultimately helping keep end-users happy and productive.

Register here.

Home > Success Center > Network Configuration Manager (NCM) > ERROR: Cannot download Running Config: Error Downloading Config to SFTP Host: X.X.X.X

ERROR: Cannot download Running Config: Error Downloading Config to SFTP Host: X.X.X.X

Updated August 22, 2016

Overview

The machine.config file is corrupted or modified for .NET Framework which SFTP needs in order to run the service.

As a result, when a config is received, you are unable to download it due to SFTP issues.

An error similar to the below may also appear:

ERROR: Cannot download Running Config: Error Downloading Config to SFTP Host: X.X.X.X

 

Upon further investigation, you may also encounter the following error message while running the SFTP service:

Service cannot be started. System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Invalid character in the given encoding. Line 129, position 37.

This file is found in the following path:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config.

Environment

All NCM versions

Cause 

There is an invalid character(s) in the machine.config file.

Resolution

  1. Go to C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\ and open the machine.config file in NotePad++.
  2. Investigate and find for the line with invalid characters.
    For example: Event ID shows invalid character in Line 129 Position 37, here is the line:  <httpCookies httpOnlyCookies="true? lockItem=?true? />
    The "?" in the "httpOnlyCookies="true?" should be double quotes, along with the "?" in "lockItem=?true?".
  3. Make the necessary changes.
  4. Restart the SFTP service.
  5. If the above steps does not work, run a repair or reinstall .NET Framework to recreate the machine.config file.

 

Last modified

Tags

Classifications

Public