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

[Solved] Validate XAML exception

5 Answers 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Leon
Top achievements
Rank 1
Leon asked on 07 Feb 2011, 08:03 PM
I am working in Silverlight 3, VS2008.

I was using the trial dll's....version --> 2010.2.0924.1030...when we bought the full verison I got the "validate XAML" exception.

and the new dll's that I am using are --> 2010.3.1110.1040..

Please Help

Exception below:

Error   50   The "ValidateXaml" task failed unexpectedly.
System.TypeLoadException: Could not load type 'System.ComponentModel.DefaultPropertyAttribute' from assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
   at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
   at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
   at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
   at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
   at MS.Internal.Xaml.Schema.ClrType.GetCustomAttribute(Type attrType)
   at MS.Internal.Xaml.Schema.ClrType.LookupRuntimeNameProperty()
   at MS.Internal.Xaml.Schema.ClrType.LookupPropertyValue(NonBoolTypeValidBits typeBit)
   at MS.Internal.Xaml.Schema.ClrType.get_RuntimeNamePropertyCore()
   at MS.Internal.Xaml.Parser.XamlAttribute.Initialize(XamlParserContext context, XamlType ownerType, XamlNamespace ownerNamespace)
   at MS.Internal.Xaml.Parser.XamlScanner.PostprocessAttributes(XamlScannerNode node)
   at MS.Internal.Xaml.Parser.XamlScanner.ReadObjectElement(XamlName name, Boolean isEmptyTag)
   at MS.Internal.Xaml.Parser.XamlScanner.ReadElement()
   at MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext()
   at MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__0.MoveNext()
   at MS.Internal.Xaml.TextReaderEnumerator.MoveNext()
   at MS.Internal.Xaml.XamlTextReader.Read()
   at MS.MarkupCompiler.ValidationPass.ValidateXaml(String fileName, Assembly[] assemblies, Assembly callingAssembly, TaskLoggingHelper log, Boolean shouldThrow)
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()
   at Microsoft.Silverlight.Build.Tasks.ValidateXaml.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)   Sentinelle.Aegis.Web.Client.View

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Feb 2011, 08:29 AM
Hi,

I believe that you cannot use Silverlight 4 assemblies in Silverlight 3 environment. 

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Leon
Top achievements
Rank 1
answered on 08 Feb 2011, 07:44 PM
So,

did we buy the wrong version...i think there was a bit of confusion at check out...?

we are using ---> RadControls_for_Silverlight_4_2010_3_1110_DEV

can we also get the Silverlight 3 assemblies.

thanks
0
Vlad
Telerik team
answered on 09 Feb 2011, 08:29 AM
Hi,

 We discontinued Silverlight 3 support more than six months ago. 

Best wishes,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Leon
Top achievements
Rank 1
answered on 09 Feb 2011, 05:54 PM
thats fine,

but can I still have the assemblies for 3.0...this is mission critical..

I downloaded the trial version about 3 months ago(which contained both 3.0 and 4.0)...and have been using it since...

Please let me know ASAP!

0
Veselin Vasilev
Telerik team
answered on 09 Feb 2011, 06:17 PM
Hi Leon,

Yes, you can use the SL 3 assemblies that are available in your account with no problem.
Just be warned that we will not release any new versions to those assemblies. Our SL3 development and support is discontinued.

Kind regards,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Leon
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Leon
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or