I keep getting this exception when i run the program. It is driving me insane. Does anyone know whats wrong and how do i fix this!
System.Windows. Markup.XamlPars eException was unhandled
Message: Cannot create instance of 'Page1' defined in assembly 'ArcForex.com, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= null'. Exception has been thrown by the target of an invocation. Error in markup file 'Page1.xaml' Line 1 Position 7.
Page1.xaml
Page1.xaml.cs
Thanks
System.Windows. Markup.XamlPars eException was unhandled
Message: Cannot create instance of 'Page1' defined in assembly 'ArcForex.com, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= null'. Exception has been thrown by the target of an invocation. Error in markup file 'Page1.xaml' Line 1 Position 7.
Page1.xaml
Code:
<Page x:Class="Example.com.Page1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Page1" Height="192" Width="999">
<Grid Background="Azure">
<Image Source="C:\banner.jpg" Margin="17,0" Name="image1" Stretch="Fill" Height="84" VerticalAlignment="Top" />
</Grid>
</Page>
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Example.com
{
/// <summary>
/// Interaction logic for Page1.xaml
/// </summary>
public partial class Page1 : Page
{
public Page1()
{
InitializeComponent();
}
}
}
Thanks
Comment