Skip to main content
Home Forums General Silverlight Installation and Setup Upgrade to silverlight 2.0 beta 1.0 to silverlight 2.0 beta 2.0
16 replies. Latest Post by Shaji-mji on July 29, 2008.
(0)
mani_29
Member
24 points
119 Posts
07-21-2008 9:34 AM |
Hi Friends,
I create one application with Silverlight 2.0 beta 1.0. Now i want to upgrade to Silverlight2.0 Beta 2.0 version. when i upgrade, i got the below error message " 'form 1' does not contain a definition for 'InitializeFromXaml' and no extension method 'InitializeFromXaml' accepting a first argument of type 'TStore.UC_Shirts5' could be found (are you missing a using directive or an assembly reference?)" .I change to "'InitializeFromXaml'" to "LoadComponent" method. but i could not able to run the application?
Please provide the good solution for me.
Thanks & Regards,
Manikandan.T.R.
pbrooks
Contributor
2671 points
355 Posts
07-21-2008 12:52 PM |
Control.InitializeFromXaml was removed in beta2. What is the error message you get when you try it with LoadComponent? The method signature is different between InitializeFromXaml and LoadComponent. Can you provide a more complete sample containing the code where you are calling this method?
The following resource might help you:
http://msdn.microsoft.com/en-us/library/cc645049(VS.95).aspx#Control_InitializeFromXaml
07-22-2008 1:19 AM |
Thanks for your reply. still i have some problem.if i upgrade to beta1 to beta 2 , what are the changes i make it(other than Loadcomponent method).
any conversion Tool available? if u know the good url pls forward me.
Thanks,
Regards,
Allen Ch...
Star
13862 points
1,803 Posts
07-23-2008 2:23 AM |
Hi
Unfortunately as far as I know there's no conversion tool available currently. For more details about the breaking changes between Beta 1 and Beta 2 please check out:
http://msdn.microsoft.com/en-us/library/cc645049(VS.95).aspx
07-23-2008 4:01 AM |
Hey,
I made some changes when i convert to silverlight 2.0 beta 1.0 to silverlight 2.0 beta 2. Runtime i got the error" XMLParseExceptionoccured ; [Line: 0 Position: 0]". I am not using "Calendor and DatePicker" controls.
do u know any other url other than(http://msdn.microsoft.com/en-us/library/cc645049(VS.95).aspx) pls forward me.
Mani
07-23-2008 5:28 AM |
Could you post your project?
07-23-2008 6:32 AM |
I send out one sample form. namespace TStore { public class UC_Shirts2 : Control
I send out one sample form.
{
}
I got the error "System.NullReferenceException: Object reference not set to an instance of an object. at TStore.CustomControl.FindName[T](String name) at TStore.CategoryPicker.InitializeComponent() at TStore.CategoryPicker..ctor() [Line: 0 Position: 0]"
Please reply me.
07-23-2008 9:26 PM |
I cannot reproduce this problem. If you could post a demo project I think we may find the root cause. You can upload your solution:
http://skydrive.live.com
Then paste the link here for us to download.
07-24-2008 1:25 AM |
when i run the silverlight application i got the following error message
"XamlParseException Occured [Line: 0 Position: 0]". why the error occured?
The error occuring the following line when i run it.
Application
Please clarify it.
Thanks&Regards,
07-24-2008 1:32 AM |
mani_29: when i run the silverlight application i got the following error message "XamlParseException Occured [Line: 0 Position: 0]". why the error occured?
Please post your current project or you can create a demo project that can reproduce this problem. I cannot reproduce it currently so could not tell you why this exception is thrown.
07-24-2008 4:01 AM |
Hey, where i post it my demo project?
how to post it?
please explain.(no attachment place is there).
07-24-2008 4:20 AM |
You can upload your solution to a public folder here:
07-25-2008 1:04 AM |
Hi,
please clarify the problem.
private FrameworkElement _innerContent;private Canvas uc_Maroontool; { canvas x:Name="uc_Maroontool" }
we can pass the id in the below code ,i am getting the XAML file in resourceLocator.
System.Uri resourceLocater = new System.Uri("name;component/UC_tool" + argPattenId + ".xaml", System.UriKind.Relative);System.Windows.Application.LoadComponent(this, resourceLocater);
I could not get the XAML file in _innerContent(showing null)
next line:
_innerContent = this as FrameworkElement; uc_Maroontool = (Canvas) _innerContent.FindName("uc_Maroontool");
Why the _innerContent is getting null value? This problem happens more place.
One more doubt:
I set the value properly.but i am getting the error "Object reference not set to an instance of an object.".
Please explain where i make the change in application?
Thanks& Regards,
07-29-2008 7:18 AM |
Please find the below URL
http://www.aimtj.com/sample/demo_project.rar
I am getting the error "Line:0 Position:0" XamlParseException.
Please provide the detailed solution.
TRM
Shaji-mji
Participant
1129 points
260 Posts
07-29-2008 7:23 AM |
Check the DLL version in your bin folder
07-29-2008 8:28 AM |
DLL Version in my folder: 1.0 what can i do? TRM
07-29-2008 9:08 AM |
Remove the current reference System.Web.Silverlight.dll, then add it again from the reference window witch will add the new dll to your application