<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Advanced Topics</title><link>http://forums.iis.net/1143.aspx</link><description>Advanced topics such as COM Programming, Log file format conversions, and Multiplex features.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>RE: ASP Problems Creating Chart Output</title><link>http://forums.iis.net/thread/1853438.aspx</link><pubDate>Tue, 16 Aug 2005 11:31:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1853438</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1853438.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1853438</wfw:commentRss><description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check NTFS security permissions on c:\NoscoStats directory. If you use Default web site IIS6 your application runs as Network Service. This user might hasn't NTFS permissions to create files there. The first solution&amp;nbsp;is change NTFS permissions (using Windows Explorer), the second is change (or create new pool with different settings) AppPool's&amp;nbsp;identity user (using IIS Manager). You can set DefaultAppPool's identity as Local System for example.&lt;/P&gt;</description></item><item><title>RE: ASP Problems Creating Chart Output</title><link>http://forums.iis.net/thread/1853429.aspx</link><pubDate>Mon, 15 Aug 2005 12:03:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1853429</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1853429.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1853429</wfw:commentRss><description>&lt;P&gt;Hey, Thanks for the help. Changed it as you suggested and the chart now works fine when i run it&amp;nbsp;locally from the server box. However, when I try and run the .asp page remotely i get the error message:&lt;/P&gt;&lt;P&gt;CLogQueryClass&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;error '80020009'&lt;/FONT&gt;&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial size=2&gt;Error executing query: Unexpected internal error calling chart object method ExportPicture: Exception occurred. [Exception occurred.]&lt;/FONT&gt; &lt;P&gt;&lt;FONT face=Arial size=2&gt;/Code/Stats/stat.asp&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;, line 64&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;Would this be due to IIS security&amp;nbsp;settings or something? Any ideas? We are running IIS 6.&lt;/P&gt;&lt;P&gt;&amp;lt;% &lt;BR&gt;dim name&lt;BR&gt;dim site&lt;BR&gt;dim date&lt;BR&gt;dim day&lt;BR&gt;dim month&lt;BR&gt;dim year&lt;BR&gt;dim csusername&lt;BR&gt;dim groupby&lt;BR&gt;dim orderby&lt;/P&gt;&lt;P&gt;&lt;BR&gt;csusername = (request.Form("cs-username"))&lt;BR&gt;day= (request.Form("day"))&lt;BR&gt;month= (request.Form("month"))&lt;BR&gt;year=(request.Form("year"))&lt;BR&gt;site= (request.Form("site"))&lt;BR&gt;groupby = (request.Form("groupby"))&lt;BR&gt;orderby = (request.Form("orderby"))&lt;BR&gt;date=""&amp;amp; year &amp;amp;"-"&amp;amp; month &amp;amp;"-"&amp;amp; day &amp;amp;""&lt;BR&gt;&lt;/P&gt;&lt;P&gt;Set oLogQuery = CreateObject("MSUtil.LogQuery")&lt;BR&gt;set oInputFormat = CreateObject("MSUtil.LogQuery.IISW3cInputFormat")&lt;BR&gt;set oOutputFormat = CreateObject("MSUtil.LogQuery.ChartOutputFormat")&lt;/P&gt;&lt;P&gt;strQuery = "SELECT date, count(c-ip) INTO c:\NoscoStats\ISStrategyTrend.gif FROM c:\NoscoStats\Temporary.txt WHERE date &amp;gt; '" &amp;amp; date &amp;amp; "' AND date &amp;lt; '" &amp;amp; date1 &amp;amp; "' AND cs-uri-stem LIKE '"&amp;amp; site1 &amp;amp;"' AND cs-username NOT LIKE '" &amp;amp; csusername &amp;amp; "' AND cs-username NOT LIKE '" &amp;amp; csusername1 &amp;amp; "' AND cs-username NOT LIKE '" &amp;amp; csusername2 &amp;amp; "' AND cs-username NOT LIKE '" &amp;amp; csusername3 &amp;amp; "' GROUP BY " &amp;amp; groupby &amp;amp; " ORDER BY " &amp;amp; orderby &amp;amp; ""&lt;BR&gt;oLogQuery.ExecuteBatch strQuery, oInputFormat, oOutputFormat&lt;/P&gt;&lt;P&gt;%&amp;gt;&lt;/P&gt;</description></item><item><title>RE: ASP Problems Creating Chart Output</title><link>http://forums.iis.net/thread/1853428.aspx</link><pubDate>Fri, 12 Aug 2005 16:20:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1853428</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1853428.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1853428</wfw:commentRss><description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe, problem is in IIS security. What account use IIS to run asp code? Maybe, this&amp;nbsp;user account doesn't have any permissions to run CHART object.&lt;BR&gt;BTW, what IIS version are you use?&lt;BR&gt;why are you call LP directly using WShell.exec? You can use code likes this:&lt;/P&gt;&lt;P&gt;Set oLogQuery = CreateObject("MSUtil.LogQuery")&lt;BR&gt;Set oInputFormat = CreateObject("MSUtil.LogQuery.IISW3CInputFormat")&lt;BR&gt;Set oOutputFormat = CreateObject("MSUtil.LogQuery.ChartOutputFormat")&lt;/P&gt;&lt;P&gt;strQuery = "SELECT&amp;nbsp; blah-blah-blah INTO&amp;nbsp;chart.gif FROM ...."&lt;BR&gt;oLogQuery.ExecuteBatch strQuery, oInputFormat, oOutputFormat&lt;BR&gt;&lt;/P&gt;</description></item><item><title>ASP Problems Creating Chart Output</title><link>http://forums.iis.net/thread/1850325.aspx</link><pubDate>Fri, 12 Aug 2005 08:12:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1850325</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1850325.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1850325</wfw:commentRss><description>&lt;P&gt;Hi there, Not 100% sure if this right section of forum to post but I'm&amp;nbsp;after some help &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;Am trying to create a web-based interface for log parser using ASP.&lt;/P&gt;&lt;P&gt;With the following code, the .GIF file is not created for some reason and I get an error of:&lt;/P&gt;&lt;P&gt;Task aborted.&lt;BR&gt;&lt;BR&gt;Statistics:&lt;BR&gt;-----------&lt;BR&gt;Elements processed: 0&lt;BR&gt;Elements output: 0&lt;BR&gt;Execution time: 0.36 seconds&lt;/P&gt;&lt;P&gt;If I copy &amp;amp; paste the name query produced to the command prompt it runs fine, however doesn't work running from asp.&lt;/P&gt;&lt;P&gt;Running command from there for&amp;nbsp;creating a .txt file works fine, just have problems doing a .GIF.&lt;/P&gt;&lt;P&gt;Any ideas would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;lt;% &lt;BR&gt;dim name&lt;BR&gt;dim site&lt;BR&gt;dim date&lt;BR&gt;dim day&lt;BR&gt;dim month&lt;BR&gt;dim year&lt;BR&gt;dim csusername&lt;BR&gt;dim groupby&lt;BR&gt;dim orderby&lt;/P&gt;&lt;P&gt;&lt;BR&gt;csusername = (request.Form("cs-username"))&lt;BR&gt;day= (request.Form("day"))&lt;BR&gt;month= (request.Form("month"))&lt;BR&gt;year=(request.Form("year"))&lt;BR&gt;site= (request.Form("site"))&lt;BR&gt;groupby = (request.Form("groupby"))&lt;BR&gt;orderby = (request.Form("orderby"))&lt;BR&gt;date=""&amp;amp; year &amp;amp;"-"&amp;amp; month &amp;amp;"-"&amp;amp; day &amp;amp;""&lt;/P&gt;&lt;P&gt;&lt;BR&gt;name="C:\logparser.exe -o:CHART ""SELECT date, count(c-ip) INTO c:\NoscoStats\ISStrategyTrend.gif FROM c:\NoscoStats\Temporary.txt WHERE date &amp;gt; '" &amp;amp; date &amp;amp; "' AND cs-uri-stem LIKE '"&amp;amp; site &amp;amp;"' AND cs-username NOT LIKE '" &amp;amp; csusername &amp;amp; "' GROUP BY " &amp;amp; groupby &amp;amp; " ORDER BY " &amp;amp; orderby &amp;amp; """ -groupSize:800x400 -i:iisw3c -chartType:ColumnStacked -chartTitle:""IS Strategy Since Feburary 2005"""&lt;/P&gt;&lt;P&gt;response.write(name&amp;gt;&lt;/P&gt;&lt;P&gt;Response.Write ("&amp;lt;br&amp;gt;")&lt;/P&gt;&lt;P&gt;Set objWShell = CreateObject("WScript.Shell") &lt;BR&gt;Set objCmd = objWShell.Exec(name) &lt;BR&gt;strPResult = objCmd.StdOut.Readall() &lt;BR&gt;set objCmd = nothing: Set objWShell = nothing &lt;BR&gt;response.write ".&amp;lt;br&amp;gt;" &amp;amp; replace(strPResult,vbCrLf,"&amp;lt;br&amp;gt;") &lt;/P&gt;&lt;P&gt;%&amp;gt;&lt;/P&gt;</description></item></channel></rss>