Skip to main content

Microsoft Silverlight

Answered Question Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0RSS Feed

(0)

divined
divined

Member

Member

3 points

18 Posts

Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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
ken tucker

All-Star

All-Star

15738 points

2,390 Posts

Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

 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

http://silverlight.net/blogs/msnow/archive/2008/09/25/silverlight-version-2-rc0-release.aspx

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

Sorry i am  already have installed SilverLight_tool v9.0.30730.33

 

ken tucker
ken tucker

All-Star

All-Star

15738 points

2,390 Posts

Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

 Do you have the latest version of the unit test framework installed?

 http://code.msdn.microsoft.com/silverlightut

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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 ..........

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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.

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

 Do you have the latest version of the unit test framework installed?

 http://code.msdn.microsoft.com/silverlightut

 

i am download , how can i install it =) with gacutil?

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

Also i can not buil sample application in silverlight toolkit arhive whit same error System.Core

ken tucker
ken tucker

All-Star

All-Star

15738 points

2,390 Posts

Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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.

 

 

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

Invalid Command Line. Unknown Switch : installvstemplate

 Now, i install VS2008 an other components on clear virtual PC

ken tucker
ken tucker

All-Star

All-Star

15738 points

2,390 Posts

Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

Sorry I forgot the last s

 

Devenv.exe /installvstemplates

 

http://msdn.microsoft.com/en-us/library/ms241279.aspx

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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?

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

https://silverlight.net/forums/p/20020/77834.aspx

 

divined
divined

Member

Member

3 points

18 Posts

Answered Question

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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

 

divined
divined

Member

Member

3 points

18 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

=) 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

divined
divined

Member

Member

3 points

18 Posts

Answered Question

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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
manolov83

Member

Member

2 points

1 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

 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
jeshmitha

Member

Member

2 points

1 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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?

SilverSanjoe
SilverSa...

Member

Member

8 points

4 Posts

Re: Silverlight System.Core 2.0.5.0 reference and ASP.NET System.Core reference 3.5.0.0

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 lines
then it should work.

uncomment lines one by one to find the actual error source

my problem was with using system.Linq

I was using a query like this

var query = from agendaItem in newUser.AgendaItems

where agendaItem.IsChanged == true || agendaItem.IsNew == true

select agendaItem;

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities