|
Alois
|
Posted 2009-02-18 16:45:47
|
|
Group: Forum Members
Last Active: 2012-05-13 11:39:53
Posts: 50,
Visits: 73
|
Hi,I can't compile the Silverlight demo! Warning: "... The link to the type "System.ComponentModel.ISite" that should be declared in "c:\Program Files\Microsoft SDKs\Silverlight\v2.0\Reference Assemblies\system.dll" could not be found c:\Program Files\CapableObjects\ECO\5.0\Silverlight\Eco.Interfaces.SL.dll EcoSilverlightDemo..." After that: "...Error 2 Unexpected error on ValidateXaml job. System.IO.FileNotFoundException: The file or assembly "System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" or a dependency of it could not be found. Filename: "System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" bei System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) bei System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) bei System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) bei 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) bei System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) bei System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType) bei System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit) bei System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit) bei MS.Internal.Xaml.MS.Impl.XamlSystemBinding.AddPairsFromAssembly(XamlSchemaContext schemaContext, Assembly asm, String uri, List`1 pairs) bei MS.Internal.Xaml.MS.Impl.XamlSystemBinding.SearchForXamlNamespace(XamlSchemaContext schemaContext, String uriString, IEnumerable`1 referenceAssemblies) bei MS.Internal.Xaml.XamlSchemaContext.GetXamlNamespace(String xmlns, Assembly localAssembly) bei MS.Internal.Xaml.XamlSchemaContext.GetXamlNamespace(String xmlns) bei MS.MarkupCompiler.ValidationPass.ValidateXaml(String fileName, Assembly[] assemblies, Assembly callingAssembly, TaskLoggingHelper log, Boolean shouldThrow) bei Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute() bei Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute() bei Microsoft.Silverlight.Build.Tasks.ValidateXaml.Execute() bei Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) ..." Alois
|
|
|
|
|
Jonas Hogstrom
|
Posted 2009-02-19 02:00:54
|
|
Group: Administrators
Last Active: 2010-11-30 13:17:13
Posts: 1 230,
Visits: 1 382
|
As a matter of fact, neither can I :-( A blank project can be compiled, but the eco demo results in the same error for me as it does for you... Weird, I have compiled it on this machine before... googling the error message didn't give any resolution for me either...
The plain project builds fine until I add the ECO silverlight assemblies to the reference list... but all assemblies were build on my machine (including hte ECO assemblies), and they all reference the version 2.0.5.0 of the silverlight core assemblies...
Do you have both Silverlight and the Silverlight SDK installed (RTM versions)?
I don't know what is going on...
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Alois
|
Posted 2009-02-19 16:46:45
|
|
Group: Forum Members
Last Active: 2012-05-13 11:39:53
Posts: 50,
Visits: 73
|
|
|
|
|
|
franklt69
|
Posted 2009-06-14 04:27:27
|
|
Group: Forum Members
Last Active: 2010-03-29 15:48:07
Posts: 71,
Visits: 303
|
Some solution for this error? I am testing version 4234
regards
Frank
Error 1 The "ValidateXaml" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Core, 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(Assembly assembly, RuntimeType caType)
at System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
at MS.Internal.Xaml.MS.Impl.XamlSystemBinding.AddPairsFromAssembly(XamlSchemaContext schemaContext, Assembly asm, String uri, List`1 pairs)
at MS.Internal.Xaml.MS.Impl.XamlSystemBinding.SearchForXamlNamespace(XamlSchemaContext schemaContext, String uriString, IEnumerable`1 referenceAssemblies)
at MS.Internal.Xaml.XamlSchemaContext.GetXamlNamespace(String xmlns, Assembly localAssembly)
at MS.Internal.Xaml.XamlSchemaContext.GetXamlNamespace(String xmlns)
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)
EcoSilverlightDemo
|
|
|
|
|
franklt69
|
Posted 2009-06-14 04:43:06
|
|
Group: Forum Members
Last Active: 2010-03-29 15:48:07
Posts: 71,
Visits: 303
|
I test it but don't fix the trouble http://blogs.southworks.net/ejadib/2008/07/10/how-to-fix-the-the-validatexaml-task-failed-unexpectedly-error-after-installing-microsoft-silverlight-tools-beta-2/
is there other solution?
regards
Frank
|
|
|
|
|
franklt69
|
Posted 2009-06-14 19:06:45
|
|
Group: Forum Members
Last Active: 2010-03-29 15:48:07
Posts: 71,
Visits: 303
|
I just create a project silverlight, then added to reference
Eco.Handles.SL
C:\Program Files\CapableObjects\ECO\5.0\Silverlight\Eco.Handles.SL.dll
and build and all was sucess
then I added Eco.Interfaces.SL
using C:\Program Files\CapableObjects\ECO\5.0\redist\Eco.Interfaces.SL.dll
it and build and I get this error:
the same with using this dll C:\Program Files\CapableObjects\ECO\5.0\Silverlight\Eco.Interfaces.SL.dll
regards
Frank
Error 1 The "ValidateXaml" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Core, 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(Assembly assembly, RuntimeType caType)
at System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
at MS.Internal.Xaml.MS.Impl.XamlSystemBinding.AddPairsFromAssembly(XamlSchemaContext schemaContext, Assembly asm, String uri, List`1 pairs)
at MS.Internal.Xaml.MS.Impl.XamlSystemBinding.SearchForXamlNamespace(XamlSchemaContext schemaContext, String uriString, IEnumerable`1 referenceAssemblies)
at MS.Internal.Xaml.XamlSchemaContext.GetXamlNamespace(String xmlns, Assembly localAssembly)
at MS.Internal.Xaml.XamlSchemaContext.GetXamlNamespace(String xmlns)
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)
SilverlightApplication1
|
|
|
|
|
Jonas Hogstrom
|
Posted 2009-06-14 23:57:00
|
|
Group: Administrators
Last Active: 2010-11-30 13:17:13
Posts: 1 230,
Visits: 1 382
|
Yes, I get the same error on my machine, and none of the tricks in the book (or google) seems to fix it. Tomorrow I'll try to install SL2 on my laptop to see if it helps with a clean machine. On my normal machine I probably have had the betas installed, but not on my lappy.
I truly hate that error message "Could not load file or assembly X or one of its dependencies"... couldn't they be just a little more explicit.
When I debug VS with another instance of VS, I get the following error later down the chain:
Could not load type 'System.Runtime.CompilerServices.FriendAccessAllowedAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
This is a bit surprising since the assembly it mentions is a standard .net assembly and not a SilverLight assembly...
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Jonas Hogstrom
|
Posted 2009-06-16 00:27:42
|
|
Group: Administrators
Last Active: 2010-11-30 13:17:13
Posts: 1 230,
Visits: 1 382
|
I think I figured out what is wrong. The problem seems to be that the ECO installer adds the ECO silverlight assemblies to the GAC. This seems to be a big no-no. I modified the installer to only put the ECO silverlight assemblies in ProgramFiles. Now I can open, build and run the silverlight demo. I'll check in the new installer and make it so in the next build.
There seems to be an issue though with the ECO uninstaller and removing assemblies from the GAC. Make sure you uninstall ECO and remove any lingering ECO assembly from the GAC before installing the next build. I'll investigate the uninstaller.
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
franklt69
|
Posted 2009-06-16 16:26:39
|
|
Group: Forum Members
Last Active: 2010-03-29 15:48:07
Posts: 71,
Visits: 303
|
Good news, I will wait for the next build, to test silverlight and ECO
regards
Frank
|
|
|
|