From: Peter Hartl?n on
Hi!

I am trying to migrate a project from VS2003 to VS2005 but this seems harder
than I was hoping for. When I try to compile my project I receive the
following error, although it's flagged as a Warning:

An internal error occurred in PlatformVerificationTask.
System.IO.FileLoadException: Could not load file or assembly
'System.PocketPC.asmmeta, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The data
necessary to complete this operation is not yet available. (Exception from
HRESULT: 0x8000000A)
File name: 'System.PocketPC.asmmeta, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' --->
System.Runtime.InteropServices.COMException (0x8000000A): The data necessary
to complete this operation is not yet available. (Exception from HRESULT:
0x8000000A)
at EnvDTE.OutputGroup.get_FileCount()
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.GetProjectOutputs(Project
project)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.AddProjectEntries(Project
project, List`1 entries, Boolean thisProject)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.EnsurePopulated(Boolean
fPopulateProject)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.SearchProjectEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Boolean
reflectionBased, Assembly& assembly)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.SearchEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Boolean
reflectionBased, Assembly& assembly)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName
name, Boolean throwOnError)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName
name)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object
sender, ResolveEventArgs e)
at System.AppDomain.OnAssemblyResolveEvent(String assemblyFullName)
at System.Reflection.Assembly.GetType(String name, Boolean throwOnError,
Boolean ignoreCase)
at System.Reflection.Assembly.GetType(String name)
at Microsoft.CompactFramework.Build.MetadataService.GetAsmmetaType(Type
sourceType)
at
Microsoft.CompactFramework.Build.MetadataService.GetTypeAttributes(String
instanceType)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationRule.VisitExpressionStatement(ExpressionStatement
statement)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitStatementList(StatementList
statements)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitBlock(Block
block)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitStatementList(StatementList
statements)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitBlock(Block
block)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitMethod(Method
method)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitMemberList(MemberList
members)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitTypeNode(TypeNode
typeNode)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitClass(Class
Class)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitTypeNodeList(TypeNodeList
types)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitModule(Module
module)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitAssembly(AssemblyNode
assembly)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationTask.Execute()


Any ideas what could be causing this error?

Thanks in advance,

Peter