Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic GDI+ Error ShapeListBox (Read 1740 times)
Dytiscus
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 28th, 2009
GDI+ Error ShapeListBox
Apr 28th, 2009 at 1:27pm
Print Post  
I am trying to get a shapelistbox to work like this (http://mindfusion.eu/demos/jdiagram/ShapeListBox.htm) example but then in imagemap mode. When there is a shapelistbox on the form and I'm trying to run it i get an gdi+ error[code]A generic error occurred in GDI+.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ExternalException (0x80004005): A generic error occurred in GDI+.]
System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +377630
MindFusion.Diagramming.WebForms.ShapeListBox.RenderContents(HtmlTextWriter output) +1292
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
MindFusion.Diagramming.WebForms.ShapeListBox.Render(HtmlTextWriter output) +112
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074 [/code]

What wrong with my code...
[code]
<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />

<ndiag:ShapeListBoxExtender ID="slbExtender" runat="server" TargetControlID="Toolslb" />
<ndiag:ShapeListBox ID="Toolslb" runat="server" ClientSideMode="ImageMap" AllowRemove="false" Width="200px"></ndiag:ShapeListBox>
<h4 id="ProjectH4" runat="server" style="padding-left:5px;"></h4>
<div id="imageContainer" runat="server" style="position: relative;">
<ndiag:DiagramView ID="CanvasView" runat="server" Height="500px" Width="500px" ClientSideMode="ImageMap"></ndiag:DiagramView>
<ndiag:InteractivityExtender ID="InteractivityExtender1" runat="server" TargetControlID="CanvasView" />
</div>

</form>

no code in de codebehind
[/code]

Cheers,
Carol
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: GDI+ Error ShapeListBox
Reply #1 - Apr 29th, 2009 at 8:58am
Print Post  
Are you running the project using the IIS server? In such case, try setting ShapeListBox.ImageLocation to some folder and give the IIS process write permissions to that folder.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint