This is a migrated thread and some comments may be shown as answers.

RadPanorama Live Tile Problem When doing Backgroundimage

3 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mustafa
Top achievements
Rank 1
Mustafa asked on 17 Jul 2014, 06:19 PM
when i use a background image on the live tile at Radpanorama i get this error



 The "GenerateResource" task failed unexpectedly.
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred 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(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
   at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)
   at System.Resources.ResourceWriter.WriteValue(ResourceTypeCode typeCode, Object value, BinaryWriter writer, IFormatter objFormatter)
   at System.Resources.ResourceWriter.Generate()
   at System.Resources.ResourceWriter.Dispose(Boolean disposing)
   at System.Resources.ResourceWriter.Close()
   at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(IResourceWriter writer)
   at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(String filename)
   at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)
   at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass)
   at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, List`1 inputs, List`1 outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, 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, Boolean& taskResult) test

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 18 Jul 2014, 09:30 AM
Hello Mustafa,

Thank you for writing.

Can you please elaborate on the precise case, since I am able to successfully set the BackgroundImage of the tile:
protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    InitializeComponent();
    
    AddPanorama();
 
    RadLiveTileElement tile = new RadLiveTileElement();
    tile.BackgroundImage = Image.FromFile(@"C:\Users\stefanov\Documents\48x48\error.png");
    (radPanorama1.Groups[0] as TileGroupElement).Items.Add(tile);
}

I am looking forward to your reply.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Mustafa
Top achievements
Rank 1
answered on 18 Jul 2014, 10:32 AM
Noo Not by code when i add it on the designer the program doesnt rebuild and doesnt start i guess it is windows 7 problem cause i just installed windows 8 and it is working 
0
Stefan
Telerik team
answered on 21 Jul 2014, 07:22 AM
Hello Mustafa,

I have tested this with our latest version and I was not able to observe the exception mentioned. Please refer to the attached video (opens in browser).

Would you please confirm you are using the latest version and also, please capture a small video demonstrating the exact steps I need to follow in order to replicate the exception. You can use Jing for capturing.

I am looking forward to your reply.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Mustafa
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Mustafa
Top achievements
Rank 1
Share this question
or