J
Joshua Newman
Hello,
I have been attempting to set up .NET and OWC server-side charting
functionality with one of my 2K3 servers. In order to do this, I've
tried several solutions, including:
http://www.aspnetresources.com/articles/office_web_components.aspx
http://www.eggheadcafe.com/articles/20021223.asp
Everything works great on my development machine (XP Pro/VS.NET
2003/OWC10&11), but when I deploy the application to the server, I get
the following error message:
QueryInterface for interface OWC11.ChChartSpace failed
Depending on which application I run, the stack trace says something a
bit different (other than the same error message). For instance, with
the aspnetresources project, I get the following stack trace:
[InvalidCastException: QueryInterface for interface OWC11.ChChartSpace
failed.]
OWC11.ChartSpaceClass.get_Border() +0
AspNetResources.Owc._default.BuildCharts() in d:\inetpub\wwwroot\owc
\default.aspx.cs:74
AspNetResources.Owc._default.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\owc\default.aspx.cs:26
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
With the eggheadcafe source, I get the following stack trace:
[InvalidCastException: QueryInterface for interface OWC11.ChChartSpace
failed.]
OWC11.ChartSpaceClass.get_Charts() +0
OWCChart.WebForm1.btnChart_Click(Object sender, EventArgs e) in d:
\inetpub\wwwroot\owcchart\webform1.aspx.cs:90
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.Rai
sePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +
33
System.Web.UI.Page.ProcessRequestMain() +1292
Interestingly enough, I'm able to build and display a server-side chart
using classic ASP on the very same server.
Any thoughts?
- Josh Newman
I have been attempting to set up .NET and OWC server-side charting
functionality with one of my 2K3 servers. In order to do this, I've
tried several solutions, including:
http://www.aspnetresources.com/articles/office_web_components.aspx
http://www.eggheadcafe.com/articles/20021223.asp
Everything works great on my development machine (XP Pro/VS.NET
2003/OWC10&11), but when I deploy the application to the server, I get
the following error message:
QueryInterface for interface OWC11.ChChartSpace failed
Depending on which application I run, the stack trace says something a
bit different (other than the same error message). For instance, with
the aspnetresources project, I get the following stack trace:
[InvalidCastException: QueryInterface for interface OWC11.ChChartSpace
failed.]
OWC11.ChartSpaceClass.get_Border() +0
AspNetResources.Owc._default.BuildCharts() in d:\inetpub\wwwroot\owc
\default.aspx.cs:74
AspNetResources.Owc._default.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\owc\default.aspx.cs:26
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
With the eggheadcafe source, I get the following stack trace:
[InvalidCastException: QueryInterface for interface OWC11.ChChartSpace
failed.]
OWC11.ChartSpaceClass.get_Charts() +0
OWCChart.WebForm1.btnChart_Click(Object sender, EventArgs e) in d:
\inetpub\wwwroot\owcchart\webform1.aspx.cs:90
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.Rai
sePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +
33
System.Web.UI.Page.ProcessRequestMain() +1292
Interestingly enough, I'm able to build and display a server-side chart
using classic ASP on the very same server.
Any thoughts?
- Josh Newman