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: 'Xamarin.AndroidDesigner' Description: The type initializer for 'Xamarin.AndroidDesigner.AndroidDesignerService' threw an exception.
System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.AndroidDesignerService' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Styles' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 31
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.AndroidDesignerService..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerService.cs:line 121
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.AndroidDesignerService..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerService.cs:line 41
 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
 at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerPackage.Initialize() in E:\A\_work\10\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\MonoAndroidDesignerPackage.cs:line 52
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Styles' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 31
 --- End of inner exception stack trace ---
 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 'Xamarin.AndroidDesigner.Styles' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35
 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 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 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.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 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...
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: 'Xamarin.AndroidDesigner' Description: The type initializer for 'Xamarin.AndroidDesigner.AndroidDesignerService' threw an exception.
System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.AndroidDesignerService' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Styles' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 31
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.AndroidDesignerService..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerService.cs:line 121
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.AndroidDesignerService..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerService.cs:line 41
 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
 at Xamarin.VisualStudio.Android.Designer.MonoAndroidDesignerPackage.Initialize() in E:\A\_work\10\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\MonoAndroidDesignerPackage.cs:line 52
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.AndroidDesigner.Styles' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 31
 --- End of inner exception stack trace ---
 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 'Xamarin.AndroidDesigner.Styles' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 at Xamarin.AndroidDesigner.Styles..cctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 175
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Resources.ScreenOrientationQualifier..ctor() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Resources\ScreenOrientationQualifier.cs:line 35
 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 'Xamarin.Designer.BaseStyles' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 at Xamarin.Designer.BaseStyles..cctor() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 208
 --- End of inner exception stack trace ---
 at Xamarin.AndroidDesigner.Styles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\Styles.cs:line 184
 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.
 at Xamarin.Designer.BaseStyles.LoadStyles() in E:\A\_work\10\s\Xamarin.Designer\Xamarin.Designer\Styles.cs:line 295
 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...