Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0
20 replies. Latest Post by SilverSanjoe on October 20, 2009.
(0)
divined
Member
3 points
18 Posts
11-23-2008 12:55 PM |
Hi all, i am russian. (Sorry for my english)
I am testing Silverlight.
I use Visual Studio 2008 SP1, Silverlight 2 beta 2 toolkit, ASP.NET 3.5
1. I create new project -> Silverlight
2. Add ASP.NET Web App
2. to App add Linq to SQL Classes
3. add WCF Service
and after build solution get error:
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. 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)................
I am change Setting my app to use Net Framework 2.0 and add referense to System.Core 2.0.5.0 and not take this error but take more others
ken tucker
All-Star
15738 points
2,390 Posts
11-23-2008 1:03 PM |
Please upgrade to the Silverlight 2 RTM tools.
http://silverlight.net/GetStarted/
There were some breaking changes from beta 2 to RTW you might want to read about them
11-23-2008 1:19 PM |
Sorry i am already have installed SilverLight_tool v9.0.30730.33
11-23-2008 1:32 PM |
Do you have the latest version of the unit test framework installed?
http://code.msdn.microsoft.com/silverlightut
11-23-2008 1:47 PM |
whith Silverlight toolkit i have another error:
after installing them i am have not toolbox for silverlight components
when i in develop Silverlight project and i want to choose items fot toolbox, when i clicked Silverlight Components Tab my VisualStudio crush
if i want to browse .NEt and add toolbox item like Microsoft.Windows.Controls.dll i get error:
Could not find file or assembly System.Windows version 2.0.5.0 ..........
11-23-2008 2:30 PM |
in my event log i have this errors:
Error in Template (c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\VisualBasic\1033\AdoNetEntityDataModelVB_ASPNET.zip), file (ModelObjectItemVB_ASPNET.vstemplate). Invalid template element (TemplateID) value (Microsoft.Data.Entity.Design.VSTemplate.ModelObjectItemVB_ASPNET).
Error in Template (c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\CSharp\1033\AdoNetEntityDataModelCSharp_ASPNET.zip), file (ModelObjectItemCS_ASPNET.vstemplate). Invalid template element (TemplateID) value (Microsoft.Data.Entity.Design.VSTemplate.ModelObjectItemCS_ASPNET).
Error in Template (c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\VisualBasic\1033\AdoNetDataServiceVBWebsite.zip), file (WebDataService.vstemplate). Unknown attribute (_locID).
Error in Template (c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\VisualBasic\Web\1033\AdoNetDataServiceVBWap.zip), file (WebDataService.vstemplate). Unknown attribute (_locID).
and crush log:
EventType clr20r3, P1 devenv.exe, P2 9.0.30729.1, P3 488f2b50, P4 microsoft.windows.design.silverlight, P5 3.5.0.0, P6 48febcc8, P7 3, P8 6, P9 exception, P10 NIL.
11-23-2008 2:52 PM |
i am download , how can i install it =) with gacutil?
11-23-2008 3:03 PM |
Also i can not buil sample application in silverlight toolkit arhive whit same error System.Core
11-23-2008 3:16 PM |
I was just looking at the error messages you posted from the event log. It looks like you are having problems with your visual studio templates.
From a visual studio command prompt try devenv.exe /installvstemplate to see if it fixes your problems. If it does not you will need to reinstall vs 2008 sp1 and the latest silverlight tools.
11-24-2008 1:55 AM |
Invalid Command Line. Unknown Switch : installvstemplate
Now, i install VS2008 an other components on clear virtual PC
11-24-2008 6:15 AM |
Sorry I forgot the last s
Devenv.exe /installvstemplates
http://msdn.microsoft.com/en-us/library/ms241279.aspx
11-24-2008 9:40 AM |
hmm..
1. I installing new Windows Xp SP2
2. installing IIS
3. installing VS2008
4. installing VS2008 Sp1
5. installing Silverlight_Tool (last release)
6. Gacutil -I (silverlight_toolkit and unit test)
7. Open sample in silverlight_toolkit and get error when build (System.Core) =(
What i also must do?
11-24-2008 9:57 AM |
it full error:
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. Не удается найти указанный файл.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)
Controls.Samples
11-24-2008 10:15 AM |
11-24-2008 10:28 AM |
https://silverlight.net/forums/p/20020/77834.aspx
11-24-2008 10:44 AM |
I solve the problem =)
Just add System.Core.dll, System.Windows.dll and system.dll to GAC(From C:\Program Files\Microsoft SDKs\Silverlight\2.0 folder)
becouse i have more than one this files, its no automatic installing in GAC
11-24-2008 10:54 AM |
=) it......
my project also want to reference System.Core.dll v3.5
Error 1 The type 'System.Linq.IQueryable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Documents and Settings\VS\Мои документы\Visual Studio 2008\Projects\YASL\YASL.Web\DataClasses1.designer.cs 68 47 YASL.Web
11-24-2008 11:10 AM |
and this problem has solved
when create silverlight project? also add Web project
in silverlight i must use referense to System.Core v2.0
in Web project - System.Core v3.5
but by default it all set to v2.0 =)
manolov83
2 points
1 Posts
02-19-2009 9:48 AM |
Thank you very much Divine ;)
Adding System.Core.dll(from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Reference Assemblies) to GAC solved my problem :)
jeshmitha
03-10-2009 4:42 AM |
i added the three reference files(system.dll,system.core.dll,system.windows.dll) from the silverlight folder.
i'm getting the error " Unknown build error, 'The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' "
should i copy the code in an wpf browser appliication or just an wpf application is sufficient?
SilverSa...
8 points
4 Posts
10-20-2009 8:18 AM |
This could be because of using a library whose functionality is not available in silverlight. The error message is misleading it has nothinng to with the actual error.for example if obj.func(); is giving error go to funct() {..}and comment the linesthen it should work.uncomment lines one by one to find the actual error sourcemy problem was with using system.LinqI was using a query like this var query = from agendaItem in newUser.AgendaItems
where agendaItem.IsChanged == true || agendaItem.IsNew == true