The "GenerateResource" task failed unexpectedly.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
before my MS Visual Studio 2010 working normally, but yesterday when i tried to make a new program and when i run the Visual Studio 2010 an error appear about "IntelliTrace.exe has stop working" i just ignore it then the real problem was this; when i put
image(s) i always got error but when i remove the image my program runs normally.
Heres the Error:

<div style="color:black; background-color:white
<pre><span style="color:blue Error 1 The <span style="color:#a31515 "GenerateResource" task failed unexpectedly.
System.Runtime.InteropServices.ExternalException (0x80004005): A generic <span style="color:blue error occurred <span style="color:blue in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(MemoryStream stream)
at System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo si, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(<span style="color:blue Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(<span style="color:blue Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(<span style="color:blue Object graph, Header[] inHeaders, __BinaryWriter serWriter, <span style="color:blue Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, <span style="color:blue Object graph, Header[] headers, <span style="color:blue Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, <span style="color:blue Object graph)
at System.Resources.ResourceWriter.WriteValue(ResourceTypeCode typeCode, <span style="color:blue Object value, BinaryWriter writer, IFormatter objFormatter)
at System.Resources.ResourceWriter.Generate()
at System.Resources.ResourceWriter.Dispose(<span style="color:blue Boolean disposing)
at System.Resources.ResourceWriter.Close()
at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(IResourceWriter writer)
at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(<span style="color:blue String filename)
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(<span style="color:blue String inFile, <span style="color:blue String outFile)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 outputs, <span style="color:blue Boolean sourcePath, <span style="color:blue String language, <span style="color:blue String namespacename, <span style="color:blue String resourcesNamespace, <span style="color:blue String filename, <span style="color:blue String classname, <span style="color:blue Boolean publicClass)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 outputs, <span style="color:blue Boolean sourcePath, <span style="color:blue String language, <span style="color:blue String namespacename, <span style="color:blue String resourcesNamespace, <span style="color:blue String filename, <span style="color:blue String classname, <span style="color:blue Boolean publicClass)
at Microsoft.Build.Tasks.GenerateResource.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, <span style="color:blue Boolean& taskResult) AccountManager

[/code]

<br/>
<br/>

<br/>

View the full article
 
Back
Top