mrward/monodevelop-nuget-addin

Proxy authentication issue

Opened this issue · 4 comments

My windows machine is set to use a PAC file for the proxy configuration with a login/password authentication scheme.
I changed the Xamarin Studio config file specifying a proxy which does not require the authentication and so I'm now able to connect to the internet and to download your the nuget add-in. When I try to use it though I have the following error: (407) Proxy Authentication required.

It looks like it's using the windows proxy instead of the one used by Xamarin Studio.

Can you try adding your proxy username and password to the NuGet.config file?

mono --runtime=v4.0.30319 NuGet.exe sources update -name FeedName -username user -password pass

Just interested if that allows you to add NuGet packages to your project.

Another thing to try is configuring the proxy in your NuGet.config. It looks like you can set the proxy, username and password using a command line similar to:

nuget config -Set HTTP_PROXY=http://127.0.0.1 -Set HTTP_PROXY.USER=domain\user

http://docs.nuget.org/docs/reference/nuget-config-settings

In Xamarin Studio 5.0 the NuGet addin should use the proxy provider built into Xamarin Studio. Would you be able to check if your problem is fixed with Xamarin Studio 5.0?

Sorry for the super late answer: i didn't notice your previous answers.

Anyway, I just installed the latest Xamarin studio release available (878). I still had to hack the XamarinStudio.exe.config file in order to change the proxy and be able to see the news in the main page because I didn't find a configuration option for it: I'll double check it.
Then, I created a new asp.net MVC 3 project, pressed on the Add package button and a proxy authentication window has appeared to me allowing to specify my proxy identity settings.

So, at least with the .config file hack, it looks that the package manager is not using the Studio proxy settings but it's own. Anyway, it's working!

Thanks