Posts

Showing posts from December, 2011

"Excuse me, sir, there seem to be something wrong with your markup"

Error : System.Exception occurred   Message=Unspecified error   StackTrace:        at MS.Internal.XcpImports.CheckHResult(UInt32 hr)        at MS.Internal.XcpImports.UIElement_Measure_WithDesiredSize(UIElement element, Size availableSize)        at System.Windows.UIElement.Measure_WithDesiredSize(Size availableSize)        at System.Windows.Controls.VirtualizingStackPanel.MeasureChild(UIElement child, Size layoutSlotSize)        at System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint)        at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)        at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)        at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)        at System.Windows.FrameworkElement.MeasureOver

Reference cannot be added to ... because it was not built using the Windows Phone runtime.

Image
Bummer! But it's a POCO ! Since I owned the code in question, I could solve the issue by creating a new project in my CookieManagement-project, called Wp7 that specifically targeted the Windows Phone 7 runtime: See those shortcut overlays on the code files in the Wp7-project? Those files are actually symbolic links to the files in the owning project, meaning I only have to manage one copy of the file. I think I picked that trick up from a .NET Rocks show: Oh ... the project referenced in this article primarilly helps you manage HTTP Cookies in a Windows Phone 7 application. For more information about the project, please visit its CodePlex project site .