Bug 18637 - Visual Studio Project with Xamarin support now won't even open
Summary: Visual Studio Project with Xamarin support now won't even open
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 1.12.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-03-28 12:43 UTC by B. Clay Shannon
Modified: 2015-08-03 08:27 UTC (History)
5 users (show)

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


Attachments
Unwanted verbiage, especially on a Friday (24.71 KB, image/png)
2014-03-28 12:43 UTC, B. Clay Shannon
Details


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 NOT_REPRODUCIBLE

Description B. Clay Shannon 2014-03-28 12:43:42 UTC
Created attachment 6428 [details]
Unwanted verbiage, especially on a Friday

I've been experimenting with / checking out Xamarin in Visual Studio for the last couple of daze.

Yesterday, though, I opened the Android SDK Manager, and saw there were four (I think it was) packages that needed to be updated. The attempt to do so failed, though, saying “A folder failed to be moved. On Windows this typically means android sdk manager...").

I then closed and restarted VS2013 / Xamarin. Subsequent attempts to open the SDK manager just result in an err msg ("Command did not execute successfully due to an unexpected exception. Please check the output window for additional information"). Here are the "More Details":

System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Mono.VisualStudio.Extension.ProcessWrapper.RunWithOutput(String executable, Int32 waitTime, String workingDir, IVsOutputWindowPane outputPane, String[] arguments)
   at Mono.Android.VisualStudio.MonoAndroidSdk.StartAndroidSdkManager()
   at Mono.Android.VisualStudio.Commands.StartSdkManager.Execute(IMenuCommand command)
   at Mono.VisualStudio.Extension.Commands.VsCommandExtensionAdapter.<>c__DisplayClass5.<OnExecute>b__3()
   at Mono.VisualStudio.Extension.TracingExtensions.ShieldUI(ITracer tracer, Action action, String format, String[] args)

Now (even after restarting Windows) I'm not even able to open the project due, I assume, to the interrupted state of the sidetracked upgrade. I'm attaching a scream shot of what I see on trying to open this solution; I would like to attach more, but apparently only one can be.

The first one says, "There was an error attempting to initialize the Mono for Android extension"

There were also these err msgs:

Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them. 
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
	 - PlatypusMobile.Android, "C:\Users\clay\documents\visual studio 2013\Projects\PlatypusMobile\PlatypusMobile.Android.csproj"


Non-functional changes required
Visual Studio will automatically make non-functional changes to the following projects in order to enable them to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1. Project behavior will not be impacted.
	 - PlatypusMobile, "C:\Users\clay\documents\visual studio 2013\Projects\PlatypusMobile\PlatypusMobile.sln"

One of the err msgs said to look in: C:\users\clay\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml

Here are the most interesting parts of that:

<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
  <entry>
    <record>1</record>
    <time>2014/03/28 15:03:09.061</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Microsoft Visual Studio 2013 version: 12.0.30110.0</description>
  </entry>
  <entry>
    <record>2</record>
    <time>2014/03/28 15:03:09.061</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Running in User Groups: Administrators Users</description>
  </entry>
  <entry>
    <record>3</record>
    <time>2014/03/28 15:03:09.061</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Available Drive Space: C:\ drive has 820592128000 bytes</description>
  </entry>
. . .
  <entry>
    <record>924</record>
    <time>2014/03/28 15:03:55.266</time>
    <type>Error</type>
    <source>Extension Manager</source>
    <description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.Desktop&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT

\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.0\DESKTOP SDK\...</description>
    <path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\DESKTOP SDK\</path>
  </entry>
  . . .
  <entry>
    <record>1001</record>
    <time>2014/03/28 15:04:42.000</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [MonoAndroidPackage]</description>
    <guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
  </entry>
  <entry>
    <record>1011</record>
    <time>2014/03/28 15:09:31.962</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [MonoAndroidPackage]</description>
    <guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
    <hr>80131509</hr>
    <errorinfo>This property is not valid when the SDK is not installed</errorinfo>
  </entry>
  <entry>
    <record>1012</record>
    <time>2014/03/28 15:09:31.963</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [MonoAndroidPackage]</description>
    <guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
    <hr>80131509</hr>
    <errorinfo>This property is not valid when the SDK is not installed</errorinfo>
  </entry>
  <entry>
    <record>1014</record>
    <time>2014/03/28 15:17:40.128</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [MonoAndroidPackage]</description>
    <guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
  </entry>
  <entry>
    <record>1015</record>
    <time>2014/03/28 15:17:42.660</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [MonoAndroidPackage]</description>
    <guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
    <hr>80131500</hr>
    <errorinfo>There is already a logger with the name 'Xamarin.Android'</errorinfo>
  </entry>
  <entry>
    <record>1016</record>
    <time>2014/03/28 15:17:42.660</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [MonoAndroidPackage]</description>
    <guid>{296E6A4E-2BD5-44B7-A96D-8EE3D9CDA2F6}</guid>
    <hr>80131500</hr>
    <errorinfo>There is already a logger with the name 'Xamarin.Android'</errorinfo>
  </entry>
</activity>
Comment 1 Danish Akhtar 2015-07-16 01:00:26 UTC
Hi B. Clay Shannon,

We are successfully able to create or load X.Android and X.iOS project in VS 2012/13 with latest stable XVS 3.11.666 builds. 

Are you still getting this issue with latest stable XVS 3.11.666? If yes, please attach your project so that we can try to reproduce this issue at our end.

Thanks
Comment 2 Mohit Kheterpal 2015-08-03 08:27:34 UTC
As there is no response from 2015-07-16, So closing this issue as RESOLVED NOT_REPRODUCIBLE.