| Subject: Undefined Error in XBAP |
| Group: microsoft.public.windows.developer.winfx.sdk |
| Date: 2/27/2007 7:41:18 PM |
| From: =?Utf-8?B?SGFtbW8=?= [Email Address Protection] |
G'day Guys, My little XBAP was humming along just fine until I tried an 'Imports' and then it craps itself. Can anyone give me an idea why this might be ?? The error I get is ... An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in Unknown Module. Additional information: Cannot create instance of 'Page1' defined in assembly 'CHITItinery, 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. The code that seems to throw it is in the code behind file and goes like this.. Imports MySql.Data.MySqlClient ' Interaction logic for Page1.xaml Partial Public Class Page1 Inherits System.Windows.Controls.Page Dim MyCon As New MySqlConnection Dim MyCom As New MySqlCommand Dim MyConString, MyComString As String Yet the error is found in the XAML file which works perfectly when I remove the imports and Dim statements. What's going on here ?? Any Ideas ?? Cheers in advance, Craig. |
| Back |