igor Posted December 1, 2008 Report Share Posted December 1, 2008 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! Quote Link to comment Share on other sites More sharing options...
Frank Posted December 1, 2008 Report Share Posted December 1, 2008 Are you using the latest Service Pack? Please provide more information about your environement: - Chart FX Version (exact build) - OS and Version - IIS Version - Development Tool Quote Link to comment Share on other sites More sharing options...
igor Posted December 1, 2008 Author Report Share Posted December 1, 2008 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();} } } Quote Link to comment Share on other sites More sharing options...
igor Posted December 1, 2008 Author Report Share Posted December 1, 2008 Can you tell me what that constructor is doing? Does it need outside resources? What is it relying on? Quote Link to comment Share on other sites More sharing options...
igor Posted January 27, 2009 Author Report Share Posted January 27, 2009 This is still not resolved. Anyone from ChartFX team can help??? thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.