Problem with OWC on Production staging server - works on dev & dev staging server

M

Mark B

I am using OWC10 from ASP.NET to stream a .gif of a chart rendered
through the charting component.

The application works correctly both on my original development server
(which has the full OWC10 PIA set installed in the GAC) and on the
secondary (installer test) Stageing server(Which has the only the
referenced OWC PIA intalled in the application bin directory).

However, when installed on the Production stage server(which is
configured the same as the dev staging server) I get the following
error:

"System.InvalidCastException: QueryInterface for interface
Microsoft.Office.Interop.OWC.ChChartSpace failed"

[InvalidCastException: QueryInterface for interface
Microsoft.Office.Interop.OWC.ChChartSpace failed.]
Microsoft.Office.Interop.OWC.ChartSpaceClass.get_Charts() +0
ChartServer.MonthlyBudgetGraph.Page_Load(Object Sender, EventArgs
E) +881
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

I am at a loss. I was using an event (to left justify the title) - I
found KB article 328275, so I removed the event handler to test that,
no luck.

I also tried wrapping the opjects being passed to the chart in an
explict object cast (as recommended in kb 327110), also no joy.

Does anyone have any other suggestions? MSDN is little help... :(
 
A

Alvin Bruney [MVP]

and on the
secondary (installer test) Stageing server(Which has the only the
referenced OWC PIA intalled in the application bin directory).
what does that mean exactly?

PIA's must be installed in the GAC using either the gacutil or register.bat.
Placing them anywhere else will not work because they will not be
registered.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Mark B said:
I am using OWC10 from ASP.NET to stream a .gif of a chart rendered
through the charting component.

The application works correctly both on my original development server
(which has the full OWC10 PIA set installed in the GAC) and on the
secondary (installer test) Stageing server(Which has the only the
referenced OWC PIA intalled in the application bin directory).

However, when installed on the Production stage server(which is
configured the same as the dev staging server) I get the following
error:

"System.InvalidCastException: QueryInterface for interface
Microsoft.Office.Interop.OWC.ChChartSpace failed"

[InvalidCastException: QueryInterface for interface
Microsoft.Office.Interop.OWC.ChChartSpace failed.]
Microsoft.Office.Interop.OWC.ChartSpaceClass.get_Charts() +0
ChartServer.MonthlyBudgetGraph.Page_Load(Object Sender, EventArgs
E) +881
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

I am at a loss. I was using an event (to left justify the title) - I
found KB article 328275, so I removed the event handler to test that,
no luck.

I also tried wrapping the opjects being passed to the chart in an
explict object cast (as recommended in kb 327110), also no joy.

Does anyone have any other suggestions? MSDN is little help... :(
 

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