RadPanorama Live Tile Problem When doing Backgroundimage

4 posts, 0 answers
  1. Mustafa
    Mustafa avatar
    2 posts
    Member since:
    Jul 2014

    Posted 17 Jul 2014 Link to this post

    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
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 18 Jul 2014 Link to this post

    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.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Mustafa
    Mustafa avatar
    2 posts
    Member since:
    Jul 2014

    Posted 18 Jul 2014 in reply to Stefan Link to this post

    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 
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 21 Jul 2014 Link to this post

    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.
     
Back to Top