Search code examples
visual-studio-2017nuget

Nuget The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding char


Good Day, My VS2017 can connect to the web i tried that and updated the package source to https://api.nuget.org/v3/index.json and I am still having the same problem and yes I did go to all the info in Stack overflow nothing helps. I even install VS2015 and I am having the same problem

Thanks in Advance


Solution

  • Nuget The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding char

    According to the error message, it seems that there is a syntax error in the nuget.config file.

    So, to resolve this issue, please try to close all Visual Studio instance, delete the nuget.config file in the path C:\Users\<Username>\AppData\Roaming\NuGet\nuget.config. Then reopen the Visual Studio, Visual Studio/nuget will regenerate it.

    Hope this helps.