As per Xamarin's Document I added the windows phone application to Xamarin.Forms project.
But, Step 5 is giving me error saying "Cannot create an instance of WindowsPhonePage".
<forms:WindowsPhonePage
xmlns:forms="using:Xamarin.Forms.Platform.WinRT"
x:Class="XamarinTest.WinPhone81.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:XamarinTest.WinPhone81"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
</forms:WindowsPhonePage>
OK, after a LOT of trial and error, I solved it. Guide didnt mention it, but I added Xamarin.Forms.Windows from NuGet and it solved the problem.
Related
I have been developing an app locally with Rails 6 sprinkled with Vue and Vuetify front end. It all works fine locally. However, when I try to deploy it from Heroku I get the following error in the debug console
[Vuetify] v-ripple can only be used on block-level elements
The site loads but but looses all the formatting so just looks like plain text. I have found this previous post but none of these solutions worked for me.
Found the Solution for me. I still had stylesheet_link_tag instead of stylesheet_pack_tag in the layouts/application.html.erb. I changed from 'link' to 'pack' and it worked. The answer to this post helped me find the answer
I have a wpf application that has a folder that holds all the images needed (called Images). In the Images folder I have imgAdd.png and the file path points to the correct place on my computer. The problem is, when I open the project in Visual Studio, I'm faced with multiple errors saying "Cannot locate resource 'images/imgadd.png'."
The Build Action is set to Resource, the file path is correct, I'm not sure why the picture isn't being found.
ImageSource="imgAdd.png"
Error 3 Cannot locate resource 'images/imgadd.png'.
<CommonControls:ccBilingualButton Canvas.Left="12" Canvas.Top="0" Cursor="Hand" Height="50" HorizontalAlignment="Right" Margin="0,0,86,6" Name="btnAddJustPerson" TabIndex="8" VerticalAlignment="Bottom" Width="75" LabelEnglish="Add" LabelFrench="Add" ImageSource="imgAdd.png" FontWeight="Bold" ImageLocation="Top" Foreground="Black" HorizontalContentAlignment="Center" BorderBrush="DarkBlue" BorderThickness="1" />
I can not get Blender working, it crashes on startup.
I tried to un-install and re-install again, it does not work.
error images:
Error Image 1
Error Image 2
please help me.
solution was by moving this file to another folder. (see image attached)
click to see error image screen
thank you #sambler
I have use this command on my project:
react-native upgrade
And I'm getting the error when I try to build the app:
android.app.Application cannot be cast to com.facebook.react.ReactApplication
I really don't know how to fix that. Any tip?
Adding the following to AndroidManifest.xml should solve the error:
<application
android:name=".MainApplication"
For me, Restarting my Android device always solves the issue
Looks like it is a random error
I'm suddenly getting this error in my WP8 project, which seems to originate from generated code. I have a previous working version and the App.xaml is identical.
<Application.Resources>
<local:LocalizedStrings xmlns:local="clr-namespace:Bins" x:Key="LocalizedStrings"/>
</Application.Resources>
and the LocalisedStrings.vb file is intact.
Any ideas?
I had the same problem when compiling the standard Windows Phone Databound App template.
Following steps worked for me:
close all Visual Studio instances
if your Region settings in the control panel mismatch the Windows Phone SDK's language (e.g. German), set the Format in the Region settings to English (United States)
in your windows explorer, navigate to %LOCALAPPDATA%\Microsoft\Phone Tools\CoreCon\ and delete the contents of the folders 10.0 and 11.0
reopen Visual Studio and rebuild your project
I also faced this issue. the root cause for my problem is as below.
1) I referenced below in my code. but i haven't added the library( System.Xml.Serialization.xml). Add Reference and select System.Xml.Serialization.xml to include the dll.
System.Xml.Serialization
2) I use an usercontrol called FileList.xaml in the mainwindow
FileList.xaml
<AM:time2str x:Key="time2str"/>
But i didnt add the class which inherits from IMultiValueConverter
MainWindow.xaml.cs(I missed the following code)
public class time2str : IMultiValueConverter
{
public object Convert(object[] values, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
********************
}
public object[] ConvertBack(object value, System.Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new System.NotImplementedException();
}
}
In my case I had this error after downloading and installing a fresh Visual Studio 2012 (the initial release version) and trying to build the default blank Windows Phone template project straight out of the box - it was only resolved by updating Visual Studio 2012 Express to Update 5.
I had this message when the mobile project platform was "ARM", I changed to "any CPU".
Go to:
Solution Project / Properties
Configuration Properties / configuration
Click in mobile project / Platform / "Any CPU".
Clean the project and run again