Warning 1 An internal error occurred in PlatformVerificationTask. System.Runtime.InteropServices.COMException (0x8000000A): The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A)
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.VisitConstruct(Construct cons)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node node)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitExpression(Expression expression)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitAssignmentStatement(AssignmentStatement assignment)
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.VisitInstanceInitializer(InstanceInitializer cons)
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() DBComponentDemo
Now ,I have solved it use the following method:
locate to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CompactFramework.Common.targets
found
Name="PlatformVerificationTask" >
change to
Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == ''">
and it will not happend any way.
btw:What cause this problem on earth?
if you declare an varible such as DataSet ds = new DataSet(); or DataTable dt = new DataTable();
finally, I wish it will do you a favor to your development ~:)
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.VisitConstruct(Construct cons)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node node)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitExpression(Expression expression)
at Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitAssignmentStatement(AssignmentStatement assignment)
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.VisitInstanceInitializer(InstanceInitializer cons)
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() DBComponentDemo
Now ,I have solved it use the following method:
locate to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CompactFramework.Common.targets
found
Name="PlatformVerificationTask" >
change to
Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == ''">
and it will not happend any way.
btw:What cause this problem on earth?
if you declare an varible such as DataSet ds = new DataSet(); or DataTable dt = new DataTable();
finally, I wish it will do you a favor to your development ~:)