Jump to content
Software FX Community

crash in ChartFX.WebForms.Chart constructor


igor
 Share

Recommended Posts

I am getting the following errors in this lien of code:

ChartFX.WebForms.

Chart() chart = new ChartFX.WebForms.Chart();

 Error 5 TestCase 'M:NUNIT_MIDev.MIWeb_Test.Dashboard_Test.CompareWaterfallAndCascadeIntelSentences'failed: The type initializer for 'ChartFX.WebForms.Internal.b' threw an exception.System.TypeInitializationException: The type initializer for 'ChartFX.WebForms.Internal.b' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at ChartFX.WebForms.Internal.OutputFileHandler.Initialize(Boolean useFileSystem) at ChartFX.WebForms.Internal.b.a(IPersistBase A_0, IPersistBase A_1) at ChartFX.WebForms.Internal.b..cctor() --- End of inner exception stack trace --- at ChartFX.WebForms.Internal.b.l() at ChartFX.WebForms.Chart.a(Int32 A_0, Int32 A_1) at ChartFX.WebForms.Chart..ctor() at NUNIT_MIDev.MIWeb_Test.Dashboard_Test.CompareWaterfallAndCascadeIntelSentences() in C:\Projects\Applications\NUNIT_MIDev\MIWeb_Test\Dashboard_Test.cs:line 50 C:\Projects\Applications\NUNIT_MIDev\MIWeb_Test\Dashboard_Test.cs 50 

 

 

Any help would be appreciated!

 

Link to comment
Share on other sites

Using ChartFX 7

Windows XP Pro

IIS 5.1

VS.NET 2005

 

I am using it in .cs file that is used for NUNIT testing:

 

using

Microsoft.Practices.EnterpriseLibrary.Data;

using

Microsoft.Practices.EnterpriseLibrary.Data.Sql;

using

Microsoft.Practices.EnterpriseLibrary.Configuration;

using

ChartFX;

using

ChartFX.WebForms;

using

ChartFX.WebForms.Annotation;

using

ChartFX.WebForms.Adornments;

using NUnit.Framework;

using

NUNIT_MIDev;namespace NUNIT_MIDev.MIWeb_Test

{

public class Dashboard_Test

{

public ChartFX.WebForms.Chart chart;

Setup _setUp;public void Setup()

{

//create instance of setup class which will give us access to commonly used objects

//use defaults

}

public void CompareWaterfallAndCascadeIntelSentences()

{

//this test compares waterfall and cascade sentences and makes sure they are the sameint actualId = 0;

//regular waterfall_setUp = new Setup();

ChartFX.WebForms.Chart chart =

new ChartFX.WebForms.Chart();

}

}

}

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...