Jump to content
Software FX Community

Not a legal OleAut date.


User (Legacy)

Recommended Posts

Hi,

I have a problem with the Flash-Output on the ChartFX .Net . The output in

png, jpg, svg, and .net works, but if I switch the same data to flash I get

this error:

----------------------------------------Errormessage

on----------------------------------------

Not a legal OleAut date.

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.ArgumentException: Not a legal OleAut date.

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:

[ArgumentException: Not a legal OleAut date.]

System.DateTime.DoubleDateToTicks(Double value) +322

System.DateTime.FromOADate(Double d) +24

SoftwareFX.ChartFX.Internet.Server.20.O1(Double 27L) +12

SoftwareFX.ChartFX.Internet.Server.ValueFormat.HW(Double 1SL, CultureInfo

1SM) +106

SoftwareFX.ChartFX.Internet.Server.ValueFormat.FormatNumber(Double d) +44

SoftwareFX.ChartFX.Internet.Server.1P.GetInfoString(PaintMarkBase pms,

String mask, HitType hitType, Int32 nSeriesInfo, Int32 nPointInfo,

GetInfoStringFlag flags, Object tag) +1930

SoftwareFX.ChartFX.Internet.Server.0R.GetString(UIString nType) +54

SoftwareFX.ChartFX.Flash.FlashWriter.32() +462

SoftwareFX.ChartFX.Flash.FlashWriter.2F() +28

SoftwareFX.ChartFX.Flash.FlashWriter.SoftwareFX.ChartFX.Base.IGraphicsEx.set_CurrentObject(Object

value) +31

SoftwareFX.ChartFX.Internet.Server.1E.SelectMarker(IGraphicsEx gx, Int32

n1, Int32 n2) +78

SoftwareFX.ChartFX.Internet.Server.1L.J6(Int32& 1VK, Int32& 1VL) +90

SoftwareFX.ChartFX.Internet.Server.1L.J5() +235

SoftwareFX.ChartFX.Internet.Server.ChartCore.58(1L 0Y3, Rectangle& 0Y4,

Int32& 0Y5) +720

SoftwareFX.ChartFX.Internet.Server.ChartCore.57(PaintBar 0Y0, IGraphicsEx

0Y1, Rectangle& 0Y2) +573

SoftwareFX.ChartFX.Internet.Server.ChartCore.73(PaintBar 10W, IGraphicsEx

10X, Rectangle& 10Y) +64

SoftwareFX.ChartFX.Internet.Server.Chart.7R(Stream 128, IOutputWriter

129, OutputText 12A, OutputText 12B, OutputInfo& 12C) +1463

SoftwareFX.ChartFX.Internet.Server.Chart.87(OutputText 136, OutputText

137, Boolean 138, Boolean 139, String 13A) +876

SoftwareFX.ChartFX.Internet.Server.Chart.GetHtmlTag(Object width, Object

height, String tag, String name) +341

SoftwareFX.ChartFX.Internet.Server.Chart.GetHtmlTag(Object objWidth,

Object objHeight, String tag) +19

Wurm.Chart.clsChart.CreateChartFlash(Object imgWidth, Object imgHeight)

in C:\VS_Projekte\WurmLib\chart\clsChart.cs:642

FDOXP.graphic.frmPlot.ChartAnzeigen()

FDOXP.graphic.frmPlot.BtnAktualisieren_ServerClick(Object sender,

EventArgs e)

System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)

+108

System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String

eventArgument) +57

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler

sourceControl, String eventArgument) +18

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138

System.Web.UI.Page.ProcessRequestMain() +1277

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET

Version:1.1.4322.573

----------------------------------------Errormessage

off----------------------------------------

Any ideas?

This are only different:

1.

strRetImage = m_Chart.GetHtmlTag(imgWidth, imgHeight, "Png");

2.

strRetImage = m_Chart.GetHtmlTag(imgWidth, imgHeight, "Flash");

Thanks,

Thorsten

Link to comment
Share on other sites

Hi,

the "chart.dat" is a metafile of my problem with the flash output.

The "chart_net_error.dat" is a metafile of other data who I have the same

problem with the "flash" AND the ".net" output (png, jpg ans svg works). If

I would like show the chart_net_error-data as .Net-Output I get this error

message (chart_net_error.jpg) and under details I found this:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.InvalidCastException: Specified cast is not valid.

at SoftwareFX.ChartFX.Internet.Client.0L.C8(Object 1SV, String 1SW,

Boolean& 1SX, Int64& 1SY)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.AxisBase.3H(Boolean 2CY,

IPersistBase 2CZ)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.0L.CF(Object 1T7, String 1T8,

TypeCode 1T9, Boolean 1TA)

at SoftwareFX.ChartFX.Internet.Client.0L.CB(Array 1T0, ObjFlags 1T1)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.AxisCollection.3H(Boolean 2G8,

IPersistBase 2G9)

at SoftwareFX.ChartFX.Internet.Client.ChartCore.73(Boolean 1J1,

IPersistBase 1J2, Boolean 1J3)

at SoftwareFX.ChartFX.Internet.Client.Chart.OnDownload(DownloadEventArgs

args)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll

----------------------------------------

System

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll

----------------------------------------

ChartFX.MainClient

Assembly Version: 6.0.1201.29676

Win32 Version: n/a

CodeBase: http://localhost/chartfx62/download/ChartFX.MainClient.DLL

----------------------------------------

System.Windows.Forms

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll

----------------------------------------

System.Drawing

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll

----------------------------------------

Microsoft.mshtml

Assembly Version: 7.0.3300.0

Win32 Version: 7.0.3300.0

CodeBase:

file:///c:/windows/assembly/gac/microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/microsoft.mshtml.dll

----------------------------------------

Accessibility

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.573

CodeBase:

file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll

----------------------------------------

ChartFX.Internet.Client

Assembly Version: 6.2.1662.18864

Win32 Version: n/a

CodeBase:

http://localhost/chartfx62/download/ChartFX.Internet.Client.DLL

----------------------------------------

ChartFX.Internet.Base

Assembly Version: 6.2.1662.18828

Win32 Version: n/a

CodeBase: http://localhost/chartfx62/download/ChartFX.Internet.Base.DLL

----------------------------------------

System.Xml

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll

----------------------------------------

************** JIT Debugging **************

To enable just in time (JIT) debugging, the config file for this

application or machine (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the machine

rather than being handled by this dialog.

I hope you can help me.

Thanks,

Thorsten

"SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag

news:QMR0TTVkEHA.3888@webserver3.softwarefx.com...

> Please export the chart to a binary file (Export Method) and attach it in

> your posting.

>

> This should allow us to reproduce the problem here and hopefully provide

> you

> with a solution.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Hi,

the "chart.dat" is a metafile of my problem with the flash output.

The "chart_net_error.dat" is a metafile of other data who I have the same

problem with the "flash" AND the ".net" output (png, jpg ans svg works). If

I would like show the chart_net_error-data as .Net-Output I get this error

message (chart_net_error.jpg) and under details I found this:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.InvalidCastException: Specified cast is not valid.

at SoftwareFX.ChartFX.Internet.Client.0L.C8(Object 1SV, String 1SW,

Boolean& 1SX, Int64& 1SY)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.AxisBase.3H(Boolean 2CY,

IPersistBase 2CZ)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.0L.CF(Object 1T7, String 1T8,

TypeCode 1T9, Boolean 1TA)

at SoftwareFX.ChartFX.Internet.Client.0L.CB(Array 1T0, ObjFlags 1T1)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.AxisCollection.3H(Boolean 2G8,

IPersistBase 2G9)

at SoftwareFX.ChartFX.Internet.Client.ChartCore.73(Boolean 1J1,

IPersistBase 1J2, Boolean 1J3)

at SoftwareFX.ChartFX.Internet.Client.Chart.OnDownload(DownloadEventArgs

args)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll

----------------------------------------

System

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll

----------------------------------------

ChartFX.MainClient

Assembly Version: 6.0.1201.29676

Win32 Version: n/a

CodeBase: http://localhost/chartfx62/download/ChartFX.MainClient.DLL

----------------------------------------

System.Windows.Forms

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll

----------------------------------------

System.Drawing

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll

----------------------------------------

Microsoft.mshtml

Assembly Version: 7.0.3300.0

Win32 Version: 7.0.3300.0

CodeBase:

file:///c:/windows/assembly/gac/microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/microsoft.mshtml.dll

----------------------------------------

Accessibility

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.573

CodeBase:

file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll

----------------------------------------

ChartFX.Internet.Client

Assembly Version: 6.2.1662.18864

Win32 Version: n/a

CodeBase:

http://localhost/chartfx62/download/ChartFX.Internet.Client.DLL

----------------------------------------

ChartFX.Internet.Base

Assembly Version: 6.2.1662.18828

Win32 Version: n/a

CodeBase: http://localhost/chartfx62/download/ChartFX.Internet.Base.DLL

----------------------------------------

System.Xml

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll

----------------------------------------

************** JIT Debugging **************

To enable just in time (JIT) debugging, the config file for this

application or machine (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the machine

rather than being handled by this dialog.

I hope you can help me.

Thanks,

Thorsten

"SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag

news:QMR0TTVkEHA.3888@webserver3.softwarefx.com...

> Please export the chart to a binary file (Export Method) and attach it in

> your posting.

>

> This should allow us to reproduce the problem here and hopefully provide

> you

> with a solution.

>

> --

> FP

> Software FX

>

>

Attachments.zip

Attachments.zip

Link to comment
Share on other sites

Hi,

the "chart.dat" is a metafile of my problem with the flash output.

The "chart_net_error.dat" is a metafile of other data who I have the same

problem with the "flash" AND the ".net" output (png, jpg ans svg works). If

I would like show the chart_net_error-data as .Net-Output I get this error

message (chart_net_error.jpg) and under details I found this:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.InvalidCastException: Specified cast is not valid.

at SoftwareFX.ChartFX.Internet.Client.0L.C8(Object 1SV, String 1SW,

Boolean& 1SX, Int64& 1SY)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.AxisBase.3H(Boolean 2CY,

IPersistBase 2CZ)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.0L.CF(Object 1T7, String 1T8,

TypeCode 1T9, Boolean 1TA)

at SoftwareFX.ChartFX.Internet.Client.0L.CB(Array 1T0, ObjFlags 1T1)

at SoftwareFX.ChartFX.Internet.Client.0L.CE(String 1T2, Object 1T3,

String 1T4, ObjFlags 1T5, Int64 1T6)

at SoftwareFX.ChartFX.Internet.Client.0L.Serialize(String sName, Object

obj, String sType, ObjFlags flags)

at SoftwareFX.ChartFX.Internet.Client.AxisCollection.3H(Boolean 2G8,

IPersistBase 2G9)

at SoftwareFX.ChartFX.Internet.Client.ChartCore.73(Boolean 1J1,

IPersistBase 1J2, Boolean 1J3)

at SoftwareFX.ChartFX.Internet.Client.Chart.OnDownload(DownloadEventArgs

args)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll

----------------------------------------

System

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll

----------------------------------------

ChartFX.MainClient

Assembly Version: 6.0.1201.29676

Win32 Version: n/a

CodeBase: http://localhost/chartfx62/download/ChartFX.MainClient.DLL

----------------------------------------

System.Windows.Forms

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll

----------------------------------------

System.Drawing

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll

----------------------------------------

Microsoft.mshtml

Assembly Version: 7.0.3300.0

Win32 Version: 7.0.3300.0

CodeBase:

file:///c:/windows/assembly/gac/microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/microsoft.mshtml.dll

----------------------------------------

Accessibility

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.573

CodeBase:

file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll

----------------------------------------

ChartFX.Internet.Client

Assembly Version: 6.2.1662.18864

Win32 Version: n/a

CodeBase:

http://localhost/chartfx62/download/ChartFX.Internet.Client.DLL

----------------------------------------

ChartFX.Internet.Base

Assembly Version: 6.2.1662.18828

Win32 Version: n/a

CodeBase: http://localhost/chartfx62/download/ChartFX.Internet.Base.DLL

----------------------------------------

System.Xml

Assembly Version: 1.0.5000.0

Win32 Version: 1.1.4322.2032

CodeBase:

file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll

----------------------------------------

************** JIT Debugging **************

To enable just in time (JIT) debugging, the config file for this

application or machine (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

For example:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the machine

rather than being handled by this dialog.

I hope you can help me.

Thanks,

Thorsten

"SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag

news:QMR0TTVkEHA.3888@webserver3.softwarefx.com...

> Please export the chart to a binary file (Export Method) and attach it in

> your posting.

>

> This should allow us to reproduce the problem here and hopefully provide

> you

> with a solution.

>

> --

> FP

> Software FX

>

>

Attachments.zip

Attachments.zip

Link to comment
Share on other sites

OK, I hope this are the right Files

Thanks,

Thorsten

"SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag

news:oo4A0mckEHA.3888@webserver3.softwarefx.com...

> Sorry but that's not what I need.

>

> Please export the chart to a BINARY file (Export Method) and attach it in

> your posting. Example:

>

> chart1.Export(FileFormat.Binary, @"c:\temp\mychart.cfx");

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

  • 2 weeks later...

OK, thanks. I must look for that. But why it's work with jpg and png 

Chart's and not with Flash (and .Net)?

Thorsten

SoftwareFX Support schrieb:

> One of your X-Values has an invalid date. Are you assigning Chart.Hidden to

> it ? If so, you must NOT assign Chart.Hidden to X-Values only to Y-Values.

> If the X-Axis is formatted as dates ALL of your X-values must be valid

> dates.

>

Link to comment
Share on other sites

  • 4 months later...

Hi,

my problem is the same again with the flash output. I can see every time one signal, but if I put two or more signals together in the chart, I get the error "Not a legal OleAut date"

I think the chart (flash-output) has a problem with different xy-values on every signal with different numbers of values. All X-Values are not Chart.Hidden only some Y-Values! I checked it again! I think the chart use intern only one X-Axis, but if it haven't a x- and y-value for this signal, it automatic replaced "nothing" to "Chart.Hidden".

Or what is my problem? Please help me.

Signal 1 | Signal 2

X-Values | Y-Values | X-Values | Y-Values

19.01.2005 23:32:00 | 1 | 19.01.2005 23:34:00 | 20.5

19.01.2005 23:34:00 | 1 | 19.01.2005 23:46:00 | 13.5

19.01.2005 23:36:00 | 1 | 19.01.2005 23:56:00 | 18.5

19.01.2005 23:38:00 | 1 | 20.01.2005 00:04:00 | 20.5

19.01.2005 23:40:00 | 1 | 20.01.2005 00:06:00 | Chart.Hidden

19.01.2005 23:42:00 | 1

19.01.2005 23:44:00 | 1

19.01.2005 23:46:00 | 1

19.01.2005 23:48:00 | 1

19.01.2005 23:50:00 | 1

19.01.2005 23:52:00 | 1

19.01.2005 23:54:00 | 1

19.01.2005 23:56:00 | 1

19.01.2005 23:58:00 | 1

20.01.2005 00:00:00 | 1

20.01.2005 00:02:00 | 1

20.01.2005 00:04:00 | 1

20.01.2005 00:06:00 | 1

Thanks,

Thorsten

"SoftwareFX Support" <noreply@softwarefx.com> schrieb im Newsbeitrag news:pjyZeyCnEHA.3352@webserver3.softwarefx.com...

> One of your X-Values has an invalid date. Are you assigning Chart.Hidden to

> it ? If so, you must NOT assign Chart.Hidden to X-Values only to Y-Values.

> If the X-Axis is formatted as dates ALL of your X-values must be valid

> dates.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...