Visual studio 2013 COMException visual studio设计器

Visual studio 2013 COMException visual studio设计器,visual-studio-2013,winrt-xaml,Visual Studio 2013,Winrt Xaml,我正在做一个定制控件的项目,该控件可以在Windows 8.1和Windows Phone 8.1上运行。在完成PCL项目中自定义控件的所有编码后,我添加了一个通用应用程序项目。在添加这个之后,我至少面临一个奇怪的错误,我真的需要一些帮助。错误及其堆栈跟踪为:- COMException:Error HRESULT E-FAIL has been returned from a call to a com component. at System.Runtime.InteropServices.

我正在做一个定制控件的项目,该控件可以在Windows 8.1和Windows Phone 8.1上运行。在完成PCL项目中自定义控件的所有编码后,我添加了一个通用应用程序项目。在添加这个之后,我至少面临一个奇怪的错误,我真的需要一些帮助。错误及其堆栈跟踪为:-

COMException:Error HRESULT E-FAIL has been returned from a call to a com component.
at System.Runtime.InteropServices.WindowsRuntime.IVector`1.InsertAt(UInt32 index, T value)
at System.Runtime.InteropServices.WindowsRuntime.VectorToListAdapter.InsertAtHelper[T](IVector`1 _this, UInt32 index, T item)
at System.Runtime.InteropServices.WindowsRuntime.VectorToListAdapter.Insert[T](Int32 index, T item)
每次启动解决方案并打开windows 8.1或windows Phone 8.1的MainPage.Xaml时,都会出现此错误。两个XAML内部都只有下面的代码

<Grid>
    <CustomWeekView:CustomWeekView x:Name="WeekView"></CustomWeekView:CustomWeekView>
</Grid>
调试期间,所有项目都可以正常运行。只有一种方法可以消除此错误,但它是非永久性的,即删除CustomWeekView并重新添加它。我所说的非永久性的意思是,如果我关闭并重新打开解决方案,错误会再次出现

有人知道为什么会这样吗?或者如何进一步调查