M
Mike Lowery
I'm trying to write an ASP.Net app that uses Log Parser 2.2's COM interface to
read some Windows Media Server (W3C) log files and generate a chart (GIF file)
on the web server. I'm getting an error when attempting to generate the chart
using the ExecuteBatch method:
Error executing query: Unexpected internal error calling chart object method
ExportPicture: Exception occurred. [Exception occurred.]
Office 2003 Web Components is installed and other output types (XML) work just
fine. So I'm guessing this is a permissions or registration error w/OWC, but not
sure. Hoping someone can point me in the right direction.
Here's the ASP.Net code:
Dim sPath As String = Request.PhysicalApplicationPath
Dim inputContext As New MSUtil.COMW3CInputContextClass
Dim outputContext As New MSUtil.COMChartOutputContextClass
outputContext.chartType = "BarClustered"
Dim query As String
query = "SELECT [c-ip], COUNT(*) AS [Sessions] INTO '" & sPath & "delme.gif'
FROM '" & sPath & "WMS_ISAPI_20040826.log' GROUP BY [c-ip]"
Dim lg1 As New MSUtil.LogQueryClass
lg1.ExecuteBatch(query, inputContext, outputContext) '<-- Error occurs here
read some Windows Media Server (W3C) log files and generate a chart (GIF file)
on the web server. I'm getting an error when attempting to generate the chart
using the ExecuteBatch method:
Error executing query: Unexpected internal error calling chart object method
ExportPicture: Exception occurred. [Exception occurred.]
Office 2003 Web Components is installed and other output types (XML) work just
fine. So I'm guessing this is a permissions or registration error w/OWC, but not
sure. Hoping someone can point me in the right direction.
Here's the ASP.Net code:
Dim sPath As String = Request.PhysicalApplicationPath
Dim inputContext As New MSUtil.COMW3CInputContextClass
Dim outputContext As New MSUtil.COMChartOutputContextClass
outputContext.chartType = "BarClustered"
Dim query As String
query = "SELECT [c-ip], COUNT(*) AS [Sessions] INTO '" & sPath & "delme.gif'
FROM '" & sPath & "WMS_ISAPI_20040826.log' GROUP BY [c-ip]"
Dim lg1 As New MSUtil.LogQueryClass
lg1.ExecuteBatch(query, inputContext, outputContext) '<-- Error occurs here