This is a migrated thread and some comments may be shown as answers.

Some problems in initialization

3 Answers 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 03 Oct 2008, 12:11 PM
Hello!

After i installed your controls (in trial mode at this moment). I enctountered strange problem.

I included all dlls in toolbox and was able to add combobox (tested with other controls aswell) to new project`s page (as its written in your manual).

Compilation went ok and after running debug i got exception on page.xaml.cs in InitializeComponent function call.

Exception text is following:
System.TypeInitializationException: [TypeInitialization_Type]
Arguments:Telerik.Windows.Controls.RadComboBox
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30523.8&File=mscorlib.dll&Key=TypeInitialization_Type ---> System.MissingMethodException: Method not found: 'Void System.Windows.PropertyMetadata..ctor(System.Object, System.Windows.PropertyChangedCallback)'.
   at Telerik.Windows.PropertyMetadata..ctor(Object defaultValue, PropertyChangedCallback propertyChangedCallback)
   at Telerik.Windows.Controls.RadComboBox..cctor()
   --- End of inner exception stack trace ---
   at System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(IntPtr type)
   at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.ConstructorInfo.Invoke(Object[] parameters)
   at MS.Internal.TypeProxy.CreateInstance(UInt32 customTypeId)
   at MS.Internal.FrameworkCallbacks.CreateKnownObject(IntPtr nativeRootPeer, UInt32 customTypeId, String initializationString, IntPtr& nativePeer) [Line: 0 Position: 0]

As i know i made all steps of installing/link as they were posted (and tryed em 2 times). What can be the reason of this then?

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 03 Oct 2008, 12:16 PM
Hello Alex,

Most probably there is a reference to the old Telerik.Windows.Controls.dll left in your application, which is causing the problem. Could you try to remove all references to the Telerik assemblies and then add them again?

All the best,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alex
Top achievements
Rank 1
answered on 03 Oct 2008, 12:33 PM
The problem is i havent used reference to old versions, because i just installed them for first time. There might be chance that some controls were used in testing purposes for ASP.NET on PC i m working, but there are no actual use of them anywhere now, but i m trying new project and in bin there are only links to the new versions i just downloaded.
Any other chances for this exception.

P.s.: I dont really know if its matter - but 'demo page' from silverlight tab aint working for me - it open static page which leads me to silverlight installation page from MS, and there i can see that i already have newest ver.
0
Valentin.Stoychev
Telerik team
answered on 05 Oct 2008, 07:27 AM
Hello Alex,

you need to install the latest "developer" version which is RC0 right now. Read more info here:
http://weblogs.asp.net/scottgu/archive/2008/09/25/silverlight-2-release-candidate-now-available.aspx

Sincerely yours,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Alex
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or