Bug 16165 - Activation prompts for proxy credentials on every launch
Summary: Activation prompts for proxy credentials on every launch
Status: RESOLVED FEATURE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Activation ()
Version: 4.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Bojan Rajkovic [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-11-12 19:11 UTC by Bruce McLeod
Modified: 2013-12-13 00:29 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Bruce McLeod 2013-11-12 19:11:09 UTC
With the latest build of Xamarin Studio, the activation credentials prompt appears on every launch and does not accept valid credentials, and keeps reoccurring.

Please note that this machine is behind a SSL filtering proxy server that removes SSL certificates and replaces them with it's self generated ones. The likely cause is that the certificate is invalid, which is causing the prompts to occur.

If the machine is tethered via my iPhone, the problem does not occur.
Comment 1 Mikayla Hutchinson [MSFT] 2013-11-12 19:19:45 UTC
Can you attach the log files from ~/Library/Logs/XamarinStudio-4.0?
Comment 2 Bojan Rajkovic [MSFT] 2013-11-15 15:11:38 UTC
Do you have credentials you use to get through this proxy? If so, you should enter them here. The IDE logs would be helpful, as Michael mentioned.
Comment 3 Bruce McLeod 2013-11-17 17:37:00 UTC
@Bojan ... Enter the proxy server credentials into that dialogue ? If so, it needs to be updated as it is not actually clear as to which credentials it is prompting for ... proxy, local account, xamarin credentials etc.

I have taken the laptop home, and it is now activated and working.

Here are the logs.

INFO [2013-11-12 09:18:09Z]: Starting Xamarin Studio 4.1.13 (build 17)
INFO [2013-11-12 09:18:09Z]: Running on Mono 3.2.4 ((no/294f999)
INFO [2013-11-12 09:18:09Z]: Using GTK+ 2.24.20
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Core
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Ide
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Debugger
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Debugger.Soft
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.SourceEditor2
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.DesignerSupport
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.XmlEditor
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Xamarin.Ide
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.MonoAndroid
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Xamarin.Ide.Mac
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.VersionControl
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.MacPlatform
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Deployment
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.AspNet
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Autotools
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Refactoring
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.CSharpBinding
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.MacDev
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.IPhone
INFO [2013-11-12 09:18:09Z]: Initializing Runtime Mono 3.2.4
Starting Xamarin Studio
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.TextTemplating
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.AspNet.Mvc
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.VBBinding
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Database.Sql
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Database.Components
INFO [2013-11-12 09:18:09Z]: Add-in loaded: MonoDevelop.Database.Query
INFO [2013-11-12 09:18:10Z]: ANDROID: Did not find Android SDK
INFO [2013-11-12 09:18:10Z]: ANDROID: Did not find Xamarin.Android
INFO [2013-11-12 09:18:10Z]: Xamarin.Android SDK not found, disabling Xamarin.Android addin
INFO:Found Xcode, version 5.0.1 (3335.23).
INFO:Found Xamarin.iOS, version 7.0.4.193.
INFO [2013-11-12 09:18:10Z]: Running license sync for iOS
   Loading Workbench
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.Deployment.Linux
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.CBinding
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.AssemblyBrowser
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.WebReferences
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.ChangeLogAddIn
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.VersionControl.Git
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.RegexToolkit
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.NUnit
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.MonoDeveloperExtensions
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.DocFood
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.Database.Designer
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.Database.ConnectionManager
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.MonoMac
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.GtkCore
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.Database.CodeGenerator
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.Gettext
INFO [2013-11-12 09:18:10Z]: Add-in loaded: MonoDevelop.PackageManagement
      Initializing Main Window
INFO [2013-11-12 09:18:10Z]: Creating DefaultWorkbench
INFO [2013-11-12 09:18:11Z]: Updating Welcome Page from 'http://software.xamarin.com/Service/News'.
INFO [2013-11-12 09:18:11Z]: Updating Prebuilt Apps from 'http://docs2.xamarin.com/PrebuiltApps.xml'.
WARNING [2013-11-12 09:18:12Z]: Welcome Page news file could not be downloaded.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
WARNING [2013-11-12 09:18:12Z]: Prebuilt Apps could not be downloaded.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
WARNING [2013-11-12 09:18:12Z]: Prebuilt Apps could not be downloaded.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
WARNING [2013-11-12 09:18:12Z]: Prebuilt Apps could not be downloaded.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
WARNING [2013-11-12 09:18:12Z]: Prebuilt Apps could not be downloaded.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
INFO [2013-11-12 09:18:12Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion
INFO [2013-11-12 09:18:12Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion.Unix
ERROR [2013-11-12 09:18:40Z]: Failed to update iOS license: Timeout.
INFO [2013-11-12 09:18:41Z]: Read license: iOS Business 2013-11-24 12:57:55Z
ERROR [2013-11-12 09:18:50Z]: Addin updater: Could not get information from repository: http://mrward.github.com/monodevelop-nuget-addin-repository/4.0/main.mrep
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
ERROR [2013-11-12 09:18:54Z]: Addin updater: Could not get information from repository: http://addins.monodevelop.com/Stable/Mac/4.1.13/main.mrep
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
ERROR [2013-11-12 09:18:56Z]: Addin updater: Could not get information from repository: http://addins.monodevelop.com/Beta/Mac/4.1.13/main.mrep
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
ERROR [2013-11-12 09:18:56Z]: Error retrieving update information.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
ERROR [2013-11-12 09:18:56Z]: Error retrieving update information.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423 
ERROR [2013-11-12 09:18:56Z]: Error retrieving update information.
System.Net.WebException: The remote server returned an error: (401) Authorization Required.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x0030c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1606 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.4/mcs/class/System/System.Net/HttpWebRequest.cs:1423
Comment 4 Bojan Rajkovic [MSFT] 2013-11-18 10:46:32 UTC
Hmm. I'll have to review the dialog, I thought it mentioned "proxy credentials" in the body text, but yes, it's asking for proxy credentials to establish the connection.
Comment 5 Bojan Rajkovic [MSFT] 2013-12-11 09:44:42 UTC
Oh, interesting. Your proxy is sending the wrong status code back, which is why the dialog doesn't mention anything about proxy credentials. Looking at the code, your proxy sends 401 Authorization Required, when the correct code is 407 Proxy Authentication Required. The code determines whether to mention proxies in the prompt or not based on the code, and returning the wrong code means it doesn't get it right.

I'll look into some other ways to detect it, but for now, this seems like the feature is working as intended.
Comment 6 Bruce McLeod 2013-12-13 00:29:33 UTC
Fine by me.