2 u013956923 u013956923 于 2014.10.16 12:13 提问

项目复制到另一台电脑中,重新生成时出现如下错误.何解?

错误 3 “GenerateResource”任务意外失败。
System.Runtime.InteropServices.ExternalException: GDI+ 中发生一般性错误。
在 System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
在 System.Drawing.Image.Save(MemoryStream stream)
在 System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo si, StreamingContext context)
在 System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
在 System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
在 System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
在 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
在 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)
在 System.Resources.ResourceWriter.WriteValue(ResourceTypeCode typeCode, Object value, BinaryWriter writer, IFormatter objFormatter)
在 System.Resources.ResourceWriter.Generate()
在 System.Resources.ResourceWriter.Dispose(Boolean disposing)
在 System.Resources.ResourceWriter.Close()
在 Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(IResourceWriter writer)
在 Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(String filename)
在 Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)
在 Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String filename, String classname, Boolean publicClass)
在 Microsoft.Build.Tasks.GenerateResource.Execute()
在 Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) GZ001

1个回答

xia4o
xia4o   2015.08.12 16:54

重新引用试一下,或者看是不是vs没有打补丁

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!