Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2005, 02:07 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default QueryInterface for interface failed problem

Hello to All
I am the new one, i need help

basically i am using ChartFX.dll and i have created a class with chart setting function and calling it from load event of page it displaying following error:

QueryInterface for interface ChartfxLib.IChartFX failed.
My code is:

public class CChartView
{
protected ChartFX m_Chart;
public CChartView()
{
//
// TODO: Add constructor logic here
//
}
public void ChartSettings()
{
m_Chart = new ChartFX();

//Back Color
Color clr = Color.FromArgb(0,0,234);
m_Chart.RGBBk = (uint)clr.ToArgb();

//Chart Title
m_Chart.set_Title(ChartfxLib.CfxTitle.CHART_TOPTIT ,"GeoMos NetViwer

Chart Demo" );

//Axis Range setting AXIS_Y

m_Chart.Axis[CfxAxisIndex.AXIS_Y].Min =0;
m_Chart.Axis[CfxAxisIndex.AXIS_Y].Max =50;
m_Chart.Axis[CfxAxisIndex.AXIS_Y].STEP =10;

m_Chart.Axis[CfxAxisIndex.AXIS_Y].ResetScale();

//AXIS_X
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(0,"A");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(1,"B");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(2,"C");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(3,"D");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(4,"E");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(5,"F");

m_Chart.UpdateSizeNow();

}

//Calling from
public class WebForm1 : System.Web.UI.Page
    {
        protected ChartDemo.ChartView m_Chart;
        private void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here
            m_Chart = new ChartDemo.ChartView();
            m_Chart.ChartSettings();
        }
}
Please anyone help to resolve this error:
"QueryInterface for interface ChartfxLib.IChartFX failed."
Birendra :(
(Delhi - India)


 
Old December 16th, 2005, 02:49 PM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not sure if this will help, but we were having the same problem. Turned out to be a corrupt dll. It was an internal com component, so we rebuilt it and redeployed.

This was based on searching on the same problem and the answers were all either reinstall the application or check security.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem With RSA Interface Floetic Java GUI 1 March 25th, 2008 06:14 AM
Problem With Implementing an Interface brettk_1 General .NET 1 February 28th, 2007 11:47 AM
QueryInterface for interface ActiveX.DLL soccers_guy10 Pro VB.NET 2002/2003 2 December 16th, 2004 12:31 AM
QueryInterface failure druid2112 General .NET 0 June 28th, 2004 10:43 AM
Interface IPrincipal Problem nightsun BOOK: ASP.NET Website Programming Problem-Design-Solution 1 December 1st, 2003 06:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.