Bug 20147 - Starting up multiple instances of VS2010 causes errors.
Summary: Starting up multiple instances of VS2010 causes errors.
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-29 12:15 UTC by jimm@tbsmobility.com
Modified: 2016-12-22 18:40 UTC (History)
6 users (show)

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


Attachments
Log files from the Xamarin log folder (6.67 KB, application/octet-stream)
2014-06-12 06:08 UTC, jimm@tbsmobility.com
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 FIXED

Description jimm@tbsmobility.com 2014-05-29 12:15:37 UTC
Hello there.

Using Windows7 and VS2010, I Updated to Xamarin 3.0.54.0 this morning and been looking to check the new version with our Android codebase. All was going well until I attempted to start another instance of VS2010 to check something in a test project and I'm now getting errors on the second instance of devenv.exe on startup and it's preventing me from loading up another android project in the second instance.

I've usually got multiple instances of VS running most days so I can see this is going to be a problem.

The error-box I get on start-up:

---------------------------
Microsoft Visual Studio
---------------------------
The 'Xamarin.VisualStudio.Shell.ShellPackage, Xamarin.VisualStudio.Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' package did not load correctly.



The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by running the application together with the /log parameter on the command line, and then examining the file 'C:\Users\xoxoxox\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml'.



Continue to show this error message?
---------------------------
Yes   No   
---------------------------

Have any of you chaps seen this happening in VS2010 or is it just me?

The ActivityLog.xml has some entries, but not much more info than the error-box that pops up. One extra entry being:

<entry>
  <record>226</record>
  <time>2014/05/29 15:43:49.998</time>
  <type>Error</type>
  <source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
  <description>Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.</description>
  <path>C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Xamarin\Xamarin\3.0.54.0\Xamarin.VisualStudio.dll</path>
</entry>

If you want the whole log off me, I'll post it if it'll help.
Comment 1 jimm@tbsmobility.com 2014-05-30 04:43:11 UTC
Just a quick update to try a work-around that failed. 

I assumed that the iOS component was causing the problem so removed the Xamarin.iOS SDK using the installer change window. After that was done, the iOS section is still visible in Tools -> Options window and I still get the same startup error when opening multiple instances. So nothing changed when I removed that.
Comment 2 Sunil Kumar 2014-06-11 10:10:34 UTC
We have checked this issue and we are able to open second instance of VS 2010 successfully without any error and loading Android project correctly in second instance as well.

Screencast: http://screencast.com/t/fFjzMdTz46

Environment info:
VS 2010
Windows 7
XVS 3.0.54.0

Could you please confirm  if this issue occurs with any specific project or with all xamarin Android projects?

If problem exist with specific solution, can you please attach the solution that demonstrates this behavior. Please also mention any sub steps(If any) that you followed and are not in description.

Also can you please add the logs from the following places
IDE log: Location: C:\User\AppData\Local\Xamarin\Log\ 
(Devenev file with latest timestamp)
Comment 3 jimm@tbsmobility.com 2014-06-12 06:08:38 UTC
Created attachment 7049 [details]
Log files from the Xamarin log folder

Files from the Xamarin log folder as requested. Contains some .log and some .svclog files.
Comment 4 jimm@tbsmobility.com 2014-06-12 06:09:28 UTC
Strange. I'm starting to think my VS2010 install is borked in some subtle way.

No matter how many times I start VS2010, after the first instance is up and running, I get the error box (see first post) on all subsequent start-ups. Even loading the simplest of Android solutions, all the Android projects appear as "unavailable" in the solution explorer apart from within the the first instance of VS2010.

The error when attempting to load a solution with an xamarin project contained within it:

System.TypeLoadException: Could not load type 'Mono.Debugging.Client.ICustomLogger' from assembly 'Mono.Debugging, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5e9ce85b0923c84f'.
   at Xamarin.VisualStudio.TastyPackage.Initialize()
   at Xamarin.VisualStudio.Android.MonoAndroidPackage.Initialize()

And in the output window I get:

"C:\path-to-project\WcfSecurityTest.csproj : error  : The project file 'C:\path-to-project\WcfSecurityTest.csproj' cannot be opened.

The project type is not supported by this installation."

I've attached the files you were after in the zip file "Xamarin_Log_20140612.zip" and it contains all the logs from this morning. I've had a look through but can't immediately see anything.
Comment 5 Jose Gallardo 2016-12-22 18:40:48 UTC
Hi,
As we've introduced several improvements around Android support, I'll mark the bug as resolved fixed. 
Also, we no longer support VS 2010.
Please feel free to reopen it if you can still reproduce the issue with current bits and a supported VS version.
Thanks!