Silverlight出现未知错误。 [英] Silverlight with unknown error.
本文介绍了Silverlight出现未知错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的两个项目中出现了一个奇怪的错误。我有一段时间没有改变它们 - 所以我对错误很困惑。我取消选中Generate Silverlight Manifest File,现在错误是:XapPackager任务意外失败。我试图清理解决方案并重建,但失败了。有什么想法吗?
错误:
I am getting a strange error in two of my projects. I have not altered them for some time - so I am very confused by the error. I unchecked the Generate Silverlight Manifest File and now the error is: The "XapPackager" task failed unexpectedly. I have tried to clean the solutions and rebuild, but that fails. Any ideas?
The error:
The "CreateSilverlightAppManifest" task failed unexpectedly.
System.TypeInitializationException: The type initializer for '205519505' threw an exception. ---> System.MissingMethodException: Method not found: 'Void 854179471.2058010023(516896233, Mono.Debugging.Client.StackFrame)'.
at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at System.Reflection.Assembly.GetType(String name)
at 1257696219.2037564253(212491372& 1969873877, Assembly 2008445448)
at 205519505..cctor()
--- End of inner exception stack trace ---
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.Silverlight.Build.Tasks.SR..ctor()
at Microsoft.Silverlight.Build.Tasks.SR.GetLoader()
at Microsoft.Silverlight.Build.Tasks.SR.GetString(String name, Boolean& fallbackUsed, Object[] args)
at Microsoft.Silverlight.Build.Tasks.SR.GetString(String name, Object[] args)
at Microsoft.Silverlight.Build.Tasks.CreateSilverlightAppManifest.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
推荐答案
关闭并重新打开Solution解决了这个问题。奇怪!
Close and re-open Solution cured this one. Strangeness!
System.MissingMethodException:找不到方法:''Void 854179471.2058010023(516896233,Mono.Debugging.Client.StackFrame)''。
那个看起来更像是Mono中的一个bug。你为什么用Mono?问题是否也出现在Visual Studio中?
" System.MissingMethodException: Method not found: ''Void 854179471.2058010023(516896233, Mono.Debugging.Client.StackFrame)''."
That looks more like a bug in Mono. Why do you use Mono? Does the problem occur in Visual Studio too?
这篇关于Silverlight出现未知错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文