Server-side OWC Charts, .NET & W2k3 problems?

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
 
B

BizWorld

It seems like some group policy on server is denying access to create chart.
You may use DCOMConfig (just find on google the exact command)
command and Allow every one to use Office web components.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top