"MonoAndroidDesignerPackage was not loaded correctly" after 15.5.0 update

  • Thread starter Thread starter Helder M. Vieira
  • Start date Start date
H

Helder M. Vieira

Guest
Hello.

After upgrading to version 15.5.0, I always get the following error when I load Visual Studio:

The 'MonoAndroidDesignerPackage' 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 examining the file (...)

Following a tip available on StackOverflow I removed the contents of the C:\Users\Hmv\AppData\Roaming\Microsoft\VisualStudio\15.0_81fa0221\ComponentModelCache folder, which was later rebuilt by Visual Studio, but the error persists.

The ActivityLog.xml last entries are as follows:

<entry>
<record>853</record>
<time>2017/12/07 17:54:19.641</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [MonoAndroidDesignerPackage]</description>
<guid>{0BB03E4B-6213-49B5-8226-BAAD41092FEA}</guid>
</entry>
<entry>
<record>854</record>
<time>2017/12/07 17:54:19.672</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{1CC14F5C-5102-50A4-8226-BEEF41092FEA}</guid>
</entry>
<entry>
<record>855</record>
<time>2017/12/07 17:54:19.672</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [DesignerPackage]</description>
<guid>{1CC14F5C-5102-50A4-8226-BEEF41092FEA}</guid>
</entry>
<entry>
<record>856</record>
<time>2017/12/07 17:54:19.672</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [DesignerPackage]</description>
<guid>{1CC14F5C-5102-50A4-8226-BEEF41092FEA}</guid>
</entry>
<entry>
<record>857</record>
<time>2017/12/07 17:54:19.865</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [MonoAndroidDesignerPackage]Source: &apos;Xamarin.AndroidDesigner&apos; Description: The type initializer for &apos;Xamarin.AndroidDesigner.AndroidDesignerService&apos; threw an exception.&#x000D;&#x000A;System.TypeInitializationException: The type initializer for &apos;Xamarin.AndroidDesigner.AndroidDesignerService&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;Xamarin.AndroidDesigner.Styles&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;Xamarin.Designer.BaseStyles&apos; threw an exception. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295&#x000D;&#x000A; at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35&#x000D;&#x000A; at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 31&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.AndroidDesignerService..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerService.cs:line 121&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.AndroidDesignerService..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerService.cs:line 41&#x000D;&#x000A; at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerService.Initialize(IServiceProvider serviceProvider) in E:\A\_work\10\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\MonoAndroidDesignerService.cs:line 52&#x000D;&#x000A; at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerPackage.Initialize() in E:\A\_work\10\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\MonoAndroidDesignerPackage.cs:line 52&#x000D;&#x000A; at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)System.TypeInitializationException: The type initializer for &apos;Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;Xamarin.AndroidDesigner.Styles&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;Xamarin.Designer.BaseStyles&apos; threw an exception. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295&#x000D;&#x000A; at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35&#x000D;&#x000A; at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 31&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.AndroidDesignerService..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerService.cs:line 121System.TypeInitializationException: The type initializer for &apos;Xamarin.AndroidDesigner.Styles&apos; threw an exception. ---&gt; System.TypeInitializationException: The type initializer for &apos;Xamarin.Designer.BaseStyles&apos; threw an exception. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295&#x000D;&#x000A; at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35&#x000D;&#x000A; at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 31System.TypeInitializationException: The type initializer for &apos;Xamarin.Designer.BaseStyles&apos; threw an exception. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295&#x000D;&#x000A; at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184&#x000D;&#x000A; at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295&#x000D;&#x000A; at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208</description>
<guid>{0BB03E4B-6213-49B5-8226-BAAD41092FEA}</guid>
<hr>80131534</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>858</record>
<time>2017/12/07 17:54:19.865</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [MonoAndroidDesignerPackage](null)</description>
<guid>{0BB03E4B-6213-49B5-8226-BAAD41092FEA}</guid>
<hr>80131534</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>859</record>
<time>2017/12/07 17:54:19.881</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [MonoAndroidDesignerPackage]</description>
<guid>{0BB03E4B-6213-49B5-8226-BAAD41092FEA}</guid>
<hr>80131534</hr>
<errorinfo></errorinfo>
</entry>

Continue reading...
 
Back
Top