Share with together

独乐乐不如众乐乐

博客园 首页 新随笔 联系 订阅 管理
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 ~:)
posted on 2007-09-08 16:44  寒枫  阅读(702)  评论(0编辑  收藏  举报