Bug 56445 - [15.3 -VS15 & VS17] Unable to Create/open any project with Xamarin
Summary: [15.3 -VS15 & VS17] Unable to Create/open any project with Xamarin
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.6.0 (15.3)
Hardware: PC Windows
: Highest blocker
Target Milestone: 15.3
Assignee: Bugzilla
Depends on:
Reported: 2017-05-15 09:53 UTC by Saurabh Paunikar
Modified: 2017-05-24 10:19 UTC (History)
8 users (show)

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

Activity_Logs (7.87 KB, application/zip)
2017-05-16 05:54 UTC, Pratik Lad
Attaching Ide logs (2.36 KB, application/x-zip-compressed)
2017-05-16 09:50 UTC, Aman Dharwal
Attaching Activity logs for VS 2017 (8.51 KB, application/x-zip-compressed)
2017-05-16 13:34 UTC, Aman Dharwal
Logs (24.37 KB, application/zip)
2017-05-24 10:19 UTC, Jacky Waswani

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:

Description Saurabh Paunikar 2017-05-15 09:53:33 UTC
Unable to Create/Open any Project

1.Install Xamarin
2.Open/Create any project (iOS,Android,or Cross Platform app)

1. While creating any project Xamarin.iOS package not installed correctly & Xamarin.Android package not installed correctly error pop up is displayed
2. While Opening any previously created project, Projects are displayed as incompatible in solution Explorer

Expected: Project Should get created/Opened successfully.

Also Observed that Tools>Options>Xamarin page is not loading
1. Start VS2015
2. Go to Tools>Options>Xamarin
3. Observe that there is an error loading the page
4. Expand the Xamarin dropdown
5. Go to the iOS Settings, Android Settings, and Other tabs

Actual: Observe that there are errors loading the page
Expected: The pages should load properly

Note : Logs for Xamarin are not generating and the available Ide log files are empty.

Build Info: https://gist.github.com/saurabh-paunikar/0b89941f3be8b2a9427171bf097b56b3
ScreenCast: https://www.screencast.com/t/IGy235EgD

Note: After installing Xamarin in VS-2015, It is not possible to create or open any project.
We have observe similar issue on build version Issue Id:- 54444 and 54509.
Comment 2 Pratik Lad 2017-05-16 05:54:38 UTC
Created attachment 22184 [details]
Comment 3 Pratik Lad 2017-05-16 06:00:13 UTC
Hello Ben,

I have taken the activity logs by following below steps:-

1. Start the IDE by using Developer Command Prompt using command devenv.exe
2. Gone to the Roaming folder of VS 2015 :
3. Deleted the Activity.xml and Activity.xsl files
4. Started the elevated developer command prompt and run the command
devenv / log
4. Triggered the package load failure
5. Again gone to the path mentioned in step 2 and collected the activity logs

Below is the error I have observed when opened the logs:-

LegacySitePackage failed for package [XamarinShellPackage]Source: &apos;mscorlib&apos; Description: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&#x000D;&#x000A;System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&#x000D;&#x000A;   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)&#x000D;&#x000A;   at System.Reflection.RuntimeModule.GetTypes()&#x000D;&#x000A;   at System.Reflection.Assembly.GetTypes()&#x000D;&#x000A;   at Clide.CommonComposition.ComponentCatalog.&lt;&gt;c.&lt;.ctor&gt;b__0_0(Assembly a) in C:\projects\clide\src\Clide\External\CommonComposition.Mef\ComponentCatalog.cs:line 34&#x000D;&#x000A;   at System.Linq.Enumerable.&lt;SelectManyIterator&gt;d__16`2.MoveNext()&#x000D;&#x000A;   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()&#x000D;&#x000A;   at System.ComponentModel.Composition.Hosting.TypeCatalog.InitializeTypeCatalog(IEnumerable`1 types)&#x000D;&#x000A;   at System.ComponentModel.Composition.Hosting.TypeCatalog..ctor(IEnumerable`1 types)&#x000D;&#x000A;   at Clide.CommonComposition.ComponentCatalog..ctor(IEnumerable`1 types) in C:\projects\clide\src\Clide\External\CommonComposition.Mef\ComponentCatalog.cs:line 52&#x000D;&#x000A;   at Clide.CommonComposition.ComponentCatalog..ctor(Assembly[] assemblies) in C:\projects\clide\src\Clide\External\CommonComposition.Mef\ComponentCatalog.cs:line 34&#x000D;&#x000A;   at Clide.DevEnvFactory.InitializeContainer(IServiceProvider services) in C:\projects\clide\src\Clide\DevEnvFactory.cs:line 130&#x000D;&#x000A;   at Clide.DevEnvFactory.&lt;Get&gt;b__3_0(IServiceProvider s) in C:\projects\clide\src\Clide\DevEnvFactory.cs:line 43&#x000D;&#x000A;   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)&#x000D;&#x000A;   at Clide.DevEnvFactory.Get(IServiceProvider services) in C:\projects\clide\src\Clide\DevEnvFactory.cs:line 42&#x000D;&#x000A;   at Clide.DevEnv.Get(IServiceProvider serviceProvider) in C:\projects\clide\src\Clide\DevEnv.cs:line 46&#x000D;&#x000A;   at Clide.Host.Initialize(IServiceProvider hostingPackage, Boolean registerCommands, Boolean registerCommandFilters, Boolean registerCommandInterceptors, Boolean registerOptionPages) in C:\projects\clide\src\Clide\Host.cs:line 91&#x000D;&#x000A;   at Xamarin.VisualStudio.TastyPackage.Initialize()&#x000D;&#x000A;   at Xamarin.VisualStudio.Shell.XamarinShellPackage.Initialize() in C:\d\lanes\4669\b877273a\source\xamarinvs\src\Core\VisualStudio.Shell\XamarinShellPackage.cs:line 72&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</

Attached the Logs

Please let us know if anything more is required.

Comment 4 Aman Dharwal 2017-05-16 09:50:43 UTC
Created attachment 22191 [details]
Attaching Ide logs

This issue is also reproducible in VS 2017 , unable to create project in VS 2017


Build info : 

Microsoft Visual Studio Enterprise 2017 Preview
Version 15.3 (26510.0-Preview) Preview
Microsoft .NET Framework
Version 4.6.01586

Xamarin (b877273)
Xamarin.Android SDK (21d46f4)
Xamarin.iOS and Xamarin.Mac SDK (c3cecd5)



Screencast link : https://www.screencast.com/t/qMx8nwekxi


Reproducible : 100%
Comment 5 Aman Dharwal 2017-05-16 13:34:46 UTC
Created attachment 22204 [details]
Attaching Activity logs for VS 2017
Comment 6 Ben Beckley 2017-05-16 20:09:18 UTC
This has been resolved with XVS 4.50.598 (xvs-win-player/e0052f1). I am no longer hitting the issue where Xamarin packages fail to load in VS2015 or VS2017.

Changing status to Resolved Fixed.
Comment 7 Jacky Waswani 2017-05-24 10:18:17 UTC
## Verifying steps: 
 For VS 2015 :
1. Created a iOS singleView Application and Build it
2. Created a Android SingleView application and build it. 

## VS 2015 Screencast : https://www.screencast.com/t/y1HLwAbgRpvK

## VS 2015 Build info :  https://gist.github.com/GLjackyvaswani/b325ef6496ebf90c094c28f4ea26a979

For Vs 2017 
1. Created a iOS singleView Application and Build it
2. Created a Android SingleView application and build it. 

## Vs 2017 Screencast: https://www.screencast.com/t/OT2hSP08iv

## VS 2017 Build info : https://gist.github.com/tanmay-bhattacharjee/97308c72682ed225ab0120a579b25f48

For Vs 2017 Android project getting different errors. Logging separate issue for that
Comment 8 Jacky Waswani 2017-05-24 10:19:40 UTC
Created attachment 22415 [details]