UWP XAML designer exception - Template10 stopped working suddenly - xaml

From one moment to another I am receiving the following error messages:
When starting the UWP app:
One of the content dialog constructor -> InitializeComponent() throws the following exception:
Windows.UI.Xaml.Markup.XamlParseException: 'The text associated with this error code could not be found.
Cannot deserialize XBF metadata property list as 'Behaviors' was not found in type 'Microsoft.Xaml.Interactivity.Interaction'. [Line: 0 Position: 0]'
http://prntscr.com/rb8bdj
And I can't open the XAML Designer:
http://prntscr.com/rb8boo
Template10 version: 1.1.12
Microsoft.Xaml.Behaviors.Uwp.Managed: 2.0.1
So the latest.
There was no any previous sign, this error come up from one moment to another today, everything was working smoothly before.
Can you please suggest anything how can I fix it or debug it?
Solution:
Finally figured out that anything went wrong with the project configuration, after deleting and readding the debug config solved the problem.

Related

Xamarin.Forms not recognizing SafeAreaInsets *at all*

Running Visual Studio for Mac with Forms version 3.1.0.637273.
The documentation says to do this in the code-behind:
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
...
On<Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
Or this in the Xaml:
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true"
I've done both, and both give the same error:
Error CS1061: 'IPlatformElementConfiguration<iOS, Page>' does not contain a definition for 'SetUseSafeArea'
I get no error from just doing this:
On<Xamarin.Forms.PlatformConfiguration.iOS>();
Which does me no good, but at least it proves that I'm accessing the PlatformConfiguration.iOS stuff without an error.
Why isn't my code recognizing anything having to do with SafeArea stuff at all?

Error adding WrapPanel

I created a new blank Windows 10 Universal app and tried to add a WrapPanel exactly as per the sample code in the link: WrapPanel XAML Control
I am getting the following error message on wrapPanel:WrapPanel
The name "WrapPanel" does not exist in the namespace "using:Microsoft.Toolkit.Uwp.UI.Controls.WrapPanel"
I have already added xmlns:wrapPanel="using:Microsoft.Toolkit.Uwp.UI.Controls.WrapPanel" as per sample code.
Full code and errors (please click image for better quality):
I have tried to Clean and Build/Rebuild but it doesn't help. I also made sure that I am targeting the latest Windows 10 version:
Please help!
Update: I tried using xmlns:wrapPanel="using:Microsoft.Toolkit.Uwp.UI.Controls"
as suggested but I still get this error. Again, I tried clean and build/rebuild and am getting the a similar error:
The documentation has a typo. The WrapPanel control is not in the Microsoft.Toolkit.Uwp.UI.Controls.WrapPanel namespace, but rather just in Microsoft.Toolkit.Uwp.UI.Controls, so use the following
xmlns:wrapPanel="using:Microsoft.Toolkit.Uwp.UI.Controls"
And it should work as expected. I will push an update for the docs.

TypeError: Cannot assign read only property 'delegatedHandlers' of aurelia-dom-boundary

I've been working on modifying the Aurelia skeleton app, and things have been going along fine. Then I added in two new jspm dependencies, bootstrap-material and aurelia-validation. Once I did that, I started getting the following two errors.
ERROR [app-router] TypeError: Cannot assign to read only property 'delegatedHandlers' of aurelia-dom-boundary
ERROR [app-router] Router navigation failed, and no previous location could be restored.
I cannot get past this. I've tried removing those dependencies, reverting things back to when they were working and I still get the errors. Any idea what could be causing it?
I believe this is just a regression in Aurelia binding library caused by this commit: https://github.com/aurelia/binding/commit/8d33813eb340c2136198916a4a757a2c577f5aab
let boundary = target.domBoundary || document,
delegatedHandlers = boundary.delegatedHandlers || (boundary.delegatedHandlers = {}),
...
I have made a comment, but did not open an Issue.
I rolled back the binding library from 0.8.4 to 0.8.2 until a fix is released.
Edit: they have fixed the issue

Infragistics.Win.Misc.UltraExpandableGroupBox showing error

I have VB.net application in which Infragistics dll is showing error. I tried to get its dll but its not seems available anywhere.
its shwoing the following error while trying build the application
Exception occurred creating type 'Infragistics.Win.Misc.UltraExpandableGroupBox, Infragistics2.Win.Misc.v7.2, Version=7.2.20072.61, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException E:\CONTRIBUTION MANAGER\Contribution Manager\Win764\ContributionManager\My Project\licenses.licx
Anybody who have any idea about this dll please help me out!!
I guess this helps, just set the build action on your license.licx to None.

Wrapper class error

I added a dll to my project. There was some error in the wrapper class so I removed that from my project. Now the trouble is whenever I build my solution, following error appears:
"Error 1 Failed to create the wrapper assembly for type library "AxUrdu_Unicode_TextBox". Compiler errors occurred when generating a Windows Forms wrapper for ActiveX control 'AxUrdu_Unicode_TextBox'. Source code saved in 'obj\Debug\AxInterop.Urdu_Unicode_TextBox.cs'.
c:\Users\Kh. Furqn\AppData\Local\Temp\mhveuttt.0.cs(30,38) : error CS0407: 'object AxUrdu_Unicode_TextBox.AxctlUrduText.About()' has the wrong return type
D:.Net Programs\School Manager\School Manager\School Manager\AxUrdu_Unicode_TextBox School Manager
"
I have done Clean Solution several times but error does not go away. Please help.
Thanks
I am presumming that you have a WinForms App, try looking in your Designer.vb file to check if there are any reference's to the Dll that gave you a problem.