Invalid NuGet.Server request

I'm currently trying to set up a NuGet server on our intranet, but I have a problem. I follow the instructions here:

http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds

The website is working fine, but when I try to specify the package manager in the source, I get an error message:

"Failed to connect to the channel specified in" myserver / DataServices / Packages.svc ". Check if the package source (located in the settings of the package manager) is valid and provides a network connection."

The URL is correct, copied from the website and is "http: // myserver / nuget".

Using Fiddler, I checked the data transfer and I get:

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <code></code> <message xml:lang="en-AU">Bad Request - Error in query syntax.</message> </error> 

There are no error logs on the server.

Can anyone help with this? I would really like to use NuGet.Server, but I have no ideas.

thanks

+4
source share
2 answers

Do you use the latest versions of NuGet.Server and package manager in VS?

0
source

Have you installed ASP.NET MVC 3 on the server?

Does the client point directly to the base URL or the .svc endpoint? You must use the base URL - call semantics have changed recently.

0
source

Source: https://habr.com/ru/post/1389199/


All Articles