Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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)
Posted
Updated 8-Jan-13 20:12pm
v2

Close and re-open Solution cured this one. Strangeness!
 
Share this answer
 
" 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?
 
Share this answer
 
Comments
Idle_Force 9-Jan-13 9:06am    
I'm not using Mono - that's the weird part.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900