Open
Description
NuGet Product Used
Other/NA
Product Version
Which product? Be specific.
Worked before?
No response
Impact
I'm unable to use this version
Repro Steps & Context
- Deployed local Nuget solution from the sample project provided by Microsoft, to IIS running on our LAN.
- The home page of the new server displayed the command that supposedly should push packages to the server:
Use the command below to push packages to this feed using the NuGet command line tool (nuget.exe).
nuget.exe push {package file} {apikey} -Source http://192.168.10.21/nuget/nuget
- The above command resulted in 404.
- We removed the extra /nuget from the end of the command and tried again to push a package to that new server:
C:\Users\userName10\Downloads\nuget.exe push TestPackage.1.1.1.1.nupkg $.......................................u -Source http://192.168.10.21/nuget
The expectation is that the above command will push the package to the server.
The actual result is error.
Verbose Logs
NuGet Version: 6.12.1.1
Pushing TestPackage.1.1.1.3.nupkg to 'http://192.168.10.21/nuget'...
PUT http://192.168.10.21/nuget/
MSBuild auto-detection: using msbuild version '17.12.6.51805' from 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
Using C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe as a credential provider plugin.
[CredentialProvider.143812]Running in plug-in mode
[CredentialProvider.143812]Command-line v1.0.8+64ba0444270c653858b4e9af8ae6056fdc0766a8: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe" -Plugin
[CredentialProvider.143812]Handling 'Request' 'Initialize'. Time elapsed in ms: 8 - Payload: {"ClientVersion":"6.12.1","Culture":"en-US","RequestTimeout":"00:00:30"}
[CredentialProvider.143812]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 10
[CredentialProvider.143812]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 11
[CredentialProvider.143812]Handling 'Request' 'GetOperationClaims'. Time elapsed in ms: 2 - Payload: {}
[CredentialProvider.143812]Sending response: 'Request' 'GetOperationClaims'. Time elapsed in ms: 16
[CredentialProvider.143812]Time elapsed in milliseconds after sending response 'Request' 'GetOperationClaims': 44
[CredentialProvider.143812]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 7 - Payload: {"LogLevel":"Debug"}
[CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 9
[CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 15
[CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 6 - Payload: {"Uri":"http://192.168.10.21/nuget","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":true}
[CredentialProvider]Creating a progress reporter with interval: 00:00:02
[CredentialProvider]Handling auth request, Uri: http://192.168.10.21/nuget, IsRetry: False, IsNonInteractive: False, CanShowDialog: True
[CredentialProvider]URI: http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]GET http://192.168.10.21/nuget
[CredentialProvider]Caught exception processing GetAuthenticationCredentials (RequestId: 3c44f0dd-0169-48c4-8881-4a39a45210bc)
[CredentialProvider]System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 192.168.10.21:80
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.HttpClient.<FinishSendAsyncUnbuffered>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.CredentialProviders.Vsts.AuthUtil.<GetResponseHeadersAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.CredentialProviders.Vsts.AuthUtil.<GetAzDevDeploymentType>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.CredentialProviders.Vsts.VstsCredentialProvider.<CanProvideCredentialsAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGetCredentialProvider.RequestHandlers.GetAuthenticationCredentialsRequestHandler.<HandleRequestAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGetCredentialProvider.RequestHandlers.RequestHandlerBase`2.<HandleResponseAsync>d__12.MoveNext()
Terminating plugin 'CredentialProvider.Microsoft' due to an unrecoverable fault: NuGet.Protocol.Plugins.ProtocolException: A plugin protocol exception occurred. ---> NuGet.Protocol.Plugins.ProtocolException: An error occurred while sending the request.
at NuGet.Protocol.Plugins.OutboundRequestContext`1.HandleFault(Message fault)
at NuGet.Protocol.Plugins.MessageDispatcher.OnMessageReceived(Object sender, MessageEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at NuGet.Protocol.Plugins.Connection.OnMessageReceived(Object sender, MessageEventArgs e)
at NuGet.Protocol.Plugins.StandardOutputReceiver.OnLineRead(Object sender, LineReadEventArgs e)
--- End of inner exception stack trace ---
An error was encountered when fetching 'PUT http://192.168.10.21/nuget/'. The request will now be retried.
A task was canceled.
PUT http://192.168.10.21/nuget/
[CredentialProvider.143816]Running in plug-in mode
[CredentialProvider.143816]Command-line v1.0.8+64ba0444270c653858b4e9af8ae6056fdc0766a8: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe" -Plugin
[CredentialProvider.143816]Handling 'Request' 'Initialize'. Time elapsed in ms: 15 - Payload: {"ClientVersion":"6.12.1","Culture":"en-US","RequestTimeout":"00:00:30"}
[CredentialProvider.143816]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 18
[CredentialProvider.143816]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 21
[CredentialProvider.143816]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 4 - Payload: {"LogLevel":"Debug"}
[CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 7
[CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 21
[CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 10 - Payload: {"Uri":"http://192.168.10.21/nuget","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":true}
[CredentialProvider]Creating a progress reporter with interval: 00:00:02
[CredentialProvider]Handling auth request, Uri: http://192.168.10.21/nuget, IsRetry: False, IsNonInteractive: False, CanShowDialog: True
[CredentialProvider]URI: http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]GET http://192.168.10.21/nuget
Terminating plugin 'CredentialProvider.Microsoft' due to an unrecoverable fault: NuGet.Protocol.Plugins.ProtocolException: A plugin protocol exception occurred. ---> NuGet.Protocol.Plugins.ProtocolException: An error occurred while sending the request.
at NuGet.Protocol.Plugins.OutboundRequestContext`1.HandleFault(Message fault)
at NuGet.Protocol.Plugins.MessageDispatcher.OnMessageReceived(Object sender, MessageEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at NuGet.Protocol.Plugins.Connection.OnMessageReceived(Object sender, MessageEventArgs e)
at NuGet.Protocol.Plugins.StandardOutputReceiver.OnLineRead(Object sender, LineReadEventArgs e)
--- End of inner exception stack trace ---
An error was encountered when fetching 'PUT http://192.168.10.21/nuget/'. The request will now be retried.
A task was canceled.
PUT http://192.168.10.21/nuget/
[CredentialProvider.143822]Running in plug-in mode
[CredentialProvider.143822]Command-line v1.0.8+64ba0444270c653858b4e9af8ae6056fdc0766a8: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\Plugins\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe" -Plugin
[CredentialProvider.143822]Handling 'Request' 'Initialize'. Time elapsed in ms: 18 - Payload: {"ClientVersion":"6.12.1","Culture":"en-US","RequestTimeout":"00:00:30"}
[CredentialProvider.143822]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 22
[CredentialProvider.143822]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 25
[CredentialProvider.143822]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 4 - Payload: {"LogLevel":"Debug"}
[CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 7
[CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 21
[CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 11 - Payload: {"Uri":"http://192.168.10.21/nuget","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":true}
[CredentialProvider]Creating a progress reporter with interval: 00:00:02
[CredentialProvider]Handling auth request, Uri: http://192.168.10.21/nuget, IsRetry: False, IsNonInteractive: False, CanShowDialog: True
[CredentialProvider]URI: http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set.
[CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for http://192.168.10.21/nuget
[CredentialProvider]GET http://192.168.10.21/nuget
Terminating plugin 'CredentialProvider.Microsoft' due to an unrecoverable fault: NuGet.Protocol.Plugins.ProtocolException: A plugin protocol exception occurred. ---> NuGet.Protocol.Plugins.ProtocolException: An error occurred while sending the request.
at NuGet.Protocol.Plugins.OutboundRequestContext`1.HandleFault(Message fault)
at NuGet.Protocol.Plugins.MessageDispatcher.OnMessageReceived(Object sender, MessageEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at NuGet.Protocol.Plugins.Connection.OnMessageReceived(Object sender, MessageEventArgs e)
at NuGet.Protocol.Plugins.StandardOutputReceiver.OnLineRead(Object sender, LineReadEventArgs e)
--- End of inner exception stack trace ---