Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ScatterGraph crash ASP.NET

Hello.

 

I have a huge problem with scatter graph.

Attached U can find an example I made to reproduce the problem.

When the program is started with a button pushed the graph is loaded with data.

 

How to produce crash of application:

- Zoom with mouse a part of graph (doesn't matter where).

- Double-Click on graph (left mouse button).

- Again Double-Click on graph (left mouse button).

- Crash.

 

PlotAreaClick I need to have for moving cursors around the graph plot.

 

I use VS2005 with Measurement Studio .NET 8.1.2.

 

Ben

0 Kudos
Message 1 of 19
(6,030 Views)
Minor modification of event PlotAreaClick in Action property.
Stil crashing.
 
Ben
0 Kudos
Message 2 of 19
(6,027 Views)

Hi Beno,

I downloaded your latest example and could not reproduce the error.  I also tried it on an additional machine and couldn't produce the error.  I followed the steps from your post exactly and then tried additional double-clicks, just in case.

What web browser are you using?  What is the version of that web browser?

Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 3 of 19
(6,000 Views)

Hi.

I use IE7 7.0.5730.13

I try now to publish the application to server.

First I have manually added NI MS dll's to server's bin directory to get it to work:

NationalInstruments.Common.dll

NationalInstruments.UI.dll

NationalInstruments.UI.WebForms.dll

 

On server I have no problems with graph crashing.

I also have problem with zoom when running from vs2005. Y scale is faulty (xy zoomed around data 0.45 to 0.55 on y scale. I then get zoomed y scale from 44792243767313024 to 66703601108033248). Graph is loaded with around 8500 points.

All this problems are gone when published to server.

 

VS 2005 is version 8.0.50727.762 (SP.050727-7600)

Measurement Studio 8.1.2. license Enterprise Edition.

VS Service pack loaded two days ago.

 

Any suggestions?

 

thnx

 

 

 

 

0 Kudos
Message 4 of 19
(5,996 Views)
Hi Beno,

I am running the same version of Measurement Studio and Visual Studio and cannot reproduce an error.  Just to clarify, you are only receiving an error when you run the program on your development computer?  Can you provide more information about the error that you are receiving?

Also, please see the following knowledge base article: Graphing and Charting in Measurement Studio Web Forms Applications
Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 5 of 19
(5,966 Views)
Hello.
It's happening only on development computer.
 
On IIS6 server it's running flawless.
 
This is the error after:
press Button
zoom portion of graph
double click on graph
double click on graph
 
 

Server Error in '/GrafProblemTest' Application.

Only double values within a range of 0, or DateTime.MinValue, to 315537897599, or DateTime.MaxValue, can be converted to DateTime.
Parameter name: source

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.ArgumentOutOfRangeException: Only double values within a range of 0, or DateTime.MinValue, to 315537897599, or DateTime.MaxValue, can be converted to DateTime.
Parameter name: source

Source Error:

[No relevant source lines]

Source File: h:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\grafproblemtest\192e03ad\8dae0f48\App_Web_0cr9c5wr.0.cs    Line: 0

Stack Trace:

[ArgumentOutOfRangeException: Only double values within a range of 0, or DateTime.MinValue, to 315537897599, or DateTime.MaxValue, can be converted to DateTime.
Parameter name: source]
   NationalInstruments.DataConverter.ConvertToDateTimeHandler(Object source, Type targetType) +217
   NationalInstruments.DataConverter.Convert(Object source, Type targetType) +341
   NationalInstruments.UI.FormatString.FormatDouble(Double value) +173
   NationalInstruments.UI.Internal.c3.d(Graphics A_0) +247
   NationalInstruments.UI.Internal.az.a(Graphics A_0, Double A_1) +61
.
.
.
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
 
 
0 Kudos
Message 6 of 19
(5,944 Views)

Bad news.

This error is now also on server.

After last upgrade.

Smiley Sad

Anyone? Help please?!

Repair of measurement studio installation did not help.

What more can I do?

0 Kudos
Message 7 of 19
(5,940 Views)

News.

If I change regional settings to other then English this error comes up.

That's why I have this problem on my PC but not on server.

There are other reasons why I can't use English regional settings.

Where could I change Culture in ASP.NET project or Measurement Studio preferences?

 

thnx

0 Kudos
Message 8 of 19
(5,936 Views)
Hi Beno,

I am still unable to reproduce this problem on my system.  What language are you changing to?  Also, when you click on the Customize... » Time in Regional and Language Options, what is displayed in the Time Format field?  If you provide as much detail as possible about what settings you are changing in the Regional and Language Options, that will help me attempt to replicate the problem on my end.

Can you also try and run the shipping example XYGraph located at:  <Examples> » UI » WebForms » XYGraph .  This will help determine whether this issue is specific to your application.


Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 9 of 19
(5,924 Views)

Hello J_Stape.

 

I use [Slovenian] regional settings.

Also on server.

If I leave servers regional settings set to US English I have no problems.

By default the Identity of Application Pool in IIS server  (Application Pools>DefaultAppPool) is set to [Network Service].

This is the security account for this application pool.

And this account has regional settings set to English.

That's why it was working on server before.

If I set application pool identity account to [Local System] (it has regional settings set to Slovenian), the error comes up.

In second post of this Thread I attached reference project to test the error.

I also tried the XYGraph example.

I had to enable ZoomX, ZoomY, and PlotAreaClick.

After zoom I only have problem with Y scale. X scale is not set to DateTime so no problem with that.

I zoomed Polar plot in XYGraph example -0,5 to 0,5 and I get the Yscale set from -5 to 5.

 

The source of the problem is (I thing) the decimal point character and DateTime format.

In Slovenian is ',' and in English '.'

Dates are also totally different.

 

After every regional settings change I have to restart visual studio.

 

Maybe the problem is localized.

What would the solution be?

 

0 Kudos
Message 10 of 19
(5,907 Views)