Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

 

 

 

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
16:55, 21 Aug 2016

Tags

Classifications

Public