Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3068

Nuget Package Manager: "...is not a valid JSON object"

$
0
0

I setup a Nexus repo recently. I see the expected result if I type the URL into a browser:enter image description here

I've successfully added this nuget server as a source to my VS2022 package manager on one machine. On my other machine, however (also with VS2022 installed), I get an error when trying to browse this repo in the package manager:

Error  [sourcename] Unable to load the service index for source [url].The content at '[url]' is not a valid JSON object.Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

It looks like the package manager is expecting JSON, but the nuget server is sending XML. How can I fix this?


Viewing all articles
Browse latest Browse all 3068

Trending Articles



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