Bug 12119 - Bonjour Service failed to initialize
Summary: Bonjour Service failed to initialize
Status: RESOLVED DUPLICATE of bug 9702
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.1.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jose Miguel Torres
URL:
Depends on:
Blocks:
 
Reported: 2013-05-06 11:48 UTC by Allie Miller
Modified: 2015-07-20 09:04 UTC (History)
7 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 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 DUPLICATE of bug 9702

Description Allie Miller 2013-05-06 11:48:48 UTC
Bonjour Service is not running after the update to 1.1. Currently on the alpha channel but encountered the same problems with stable and beta.

Getting the error:
The Bonjour backend failed to initialize, automatic server discovery will not be possible.
System.ApplicationException: The 'Bonjour Service' cannot be started due to insufficient privileges. Please start the 'Bonjour Service' manually. Once the 'Bonjour Service' has started successfully, reload this project.
bei Mono.IOS.VisualStudio.Utilities.ZeroConfDiscovery.CheckServiceHealth()
bei Mono.IOS.VisualStudio.Utilities.ZeroConfDiscovery..ctor()


The Xamarin Bonjour Service is supposed to be here: "C:\Program Files (x86)\Xamarin\Bonjour\mDNSResponder.exe
But this directory (Bonjour) doesn’t exist any longer.

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Xamarin\ is now empty.
Comment 1 Marc K 2013-05-06 12:23:14 UTC
The folder C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Xamarin\ is just empty because I was told to delete it:

-------
On your Windows workstation, can you try checking the follow location to see if there are any files in the location?
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Xamarin\

If there are, please try removing them to see if that resolves the issue.
--------
After messing up my Visual Studio this way, I did a complete reinstallation of Visual Studio and Xamarin. Means uninstall all (3) entries of Xamarin in Control Panel --> Software, then uninstall Visual Studio.
Reinstall Visual Studio, reinstall Service Pack 1, Windows Updates.
Xamarin.iOS. Same problem as before and the Bonjour Service was still in the Windows Services despite all Xamarin software being uninstalled.
Comment 2 Marek Habersack 2013-05-06 18:07:33 UTC
Krei, Have you ever had Apple Bonjour SDK installed? Or iTunes? 

Jose, can you take a look at the error please?
Comment 3 Marc K 2013-05-07 12:55:39 UTC
Yes I have had iTunes and iCloud installed. Sorry I can't tell you the version number since I'm working at another PC now.
Comment 4 Marek Habersack 2013-05-08 03:41:23 UTC
It's ok, thanks for the info! Jose, can you install iTunes and see if you can repro the issue?
Comment 5 Dominique Louis 2013-05-08 09:03:04 UTC
Is this a duplicate of/related to #9702?
Comment 6 Marek Habersack 2013-05-08 09:09:12 UTC
I'd say it's a duplicate. Marking it as such.

*** This bug has been marked as a duplicate of bug 9702 ***
Comment 7 Levi 2015-07-20 09:04:52 UTC
Just go to My Computer or My PC, right-click and select "Manage" or just search for 'Services' then go to 'Services and Applications' then 'Services'. Look for 'Bonjour Services' and click on it. Now go to 'General' tab and look for Startup type. Change it from Disabled to Automatic. Click 'Apply' then on 'Service Status' click 'Start' then OK. Worked for me!