<?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>Search results matching tag 'COM programming'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=COM+programming&amp;orTags=0</link><description>Search results matching tag 'COM programming'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Security event log flooded with 540/438 eventids when querying with LogParser</title><link>http://forums.iis.net/p/1153230/1885495.aspx#1885495</link><pubDate>Thu, 20 Nov 2008 16:43:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885495</guid><dc:creator>Dauhee</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi all,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When querying event logs with COMEventLogInputContextClassClass, the security eventlog gets flooded with logon/off eventid&amp;#39;s. For example If querying the Application log on Machine X, it appears there is a logon/off put into the Security log for every record pulled out of the Application lo: &lt;/p&gt;&lt;p&gt;&amp;nbsp;Successful Network Logon:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;User Name:&amp;nbsp;&amp;nbsp;&amp;nbsp; xxx&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Domain:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxx&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Logon ID:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;(0x0,0x82461027)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Logon Type:&amp;nbsp;&amp;nbsp; &amp;nbsp;3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Logon Process:&amp;nbsp;&amp;nbsp; &amp;nbsp;NtLmSsp &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Authentication Package:&amp;nbsp;&amp;nbsp; &amp;nbsp;NTLM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Workstation Name:&amp;nbsp;&amp;nbsp;&amp;nbsp; yyy&lt;/p&gt;&lt;p&gt;User Logoff:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User Name:&amp;nbsp;&amp;nbsp;&amp;nbsp; xxx&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Domain:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xxx&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logon ID:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (0x0,0x82461027)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Logon Type:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried a number of things but its driving me crazy! Any help would be much appreciated!&lt;/p&gt;&lt;p&gt;Dauhee. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>COM+ Application Recycling Problems</title><link>http://forums.iis.net/p/1152534/1882594.aspx#1882594</link><pubDate>Wed, 22 Oct 2008 04:24:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1882594</guid><dc:creator>maxblog</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;Hi All&lt;/p&gt;
&lt;p&gt;I have configured a COM+ component (VB ActiveX DLL)&amp;nbsp;on windows XP embeded&amp;nbsp;to recyle itself after 2 days. &lt;/p&gt;
&lt;p&gt;The problem is that COM+ destroys the old dllhost.exe which is fine but it does not spins up a second dllhost.exe to service the calls.&lt;/p&gt;
&lt;p&gt;could you please&amp;nbsp;help me why that would be and how to fix it.&lt;/p&gt;
&lt;p&gt;Thanks in advance&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>inconsistent results when running query from command line and using com objects</title><link>http://forums.iis.net/p/1152118/1880922.aspx#1880922</link><pubDate>Wed, 01 Oct 2008 17:17:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1880922</guid><dc:creator>mmendenhall</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;I am trying to use logparser to monitor avg transaction times and transaction counts using a windows service but i get different results when running the queries from the command line and from my service. For example:&lt;/p&gt;&lt;p&gt;Running from the command line:&lt;/p&gt;&lt;p&gt;logparser &amp;quot;SELECT Count(*) FROM C:\WINDOWS\system32\LogFiles\W3SVC2\ex081001.log WHERE SUB(TO_INT(TO_TIME(SYSTEM_TIMESTAMP())),TO_INT(TO_TIME(time))) &amp;lt;= 300 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;gives me this output:&lt;/p&gt;&amp;nbsp;COUNT(ALL *)&lt;br /&gt;&lt;p&gt;------------&lt;br /&gt;18&lt;br /&gt;&lt;br /&gt;Statistics:&lt;br /&gt;-----------&lt;br /&gt;Elements processed: 62&lt;br /&gt;Elements output:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;br /&gt;Execution time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Running from my service the following code:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string query = &amp;quot;SELECT Count(*) FROM &amp;quot; + FilePath + &amp;quot; WHERE SUB(TO_INT(TO_TIME(SYSTEM_TIMESTAMP())),TO_INT(TO_TIME(time))) &amp;lt;= 300&amp;quot;;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LogQueryClassClass oLogQuery = new LogQueryClassClass();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMIISW3CInputContextClassClass format = new COMIISW3CInputContextClassClass();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMNativeOutputContextClassClass outformat = new COMNativeOutputContextClassClass();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oLogQuery.ExecuteBatch(query, format, outformat); &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;gives me this output:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;COUNT(ALL *)&lt;br /&gt;------------&lt;br /&gt;62 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;It looks like for some reason it spits out the elements processed instead of the result of the query..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas? All help is greatly appreciated. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how check Query syntax through code?</title><link>http://forums.iis.net/p/1149322/1869580.aspx#1869580</link><pubDate>Thu, 15 May 2008 09:52:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1869580</guid><dc:creator>Anwarhusen</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;Thanks Bernard.&lt;/p&gt;
&lt;p&gt;I am using LP COM with c# for Large CSV files. &amp;nbsp;I have tested it for Around 8GB files with around 1,00,00,00,000 Rows(1 Billion).&lt;/p&gt;
&lt;p&gt;Its Amazing......&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Anwarhusen&lt;/p&gt;</description></item><item><title>Input / Output problems</title><link>http://forums.iis.net/p/1149352/1869508.aspx#1869508</link><pubDate>Wed, 14 May 2008 14:13:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1869508</guid><dc:creator>Narfix</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;Hello !&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been trying to use the COM LogParser from VB6 but I encountered some difficulties...&lt;/p&gt;
&lt;p&gt;I managed to query IIS log files without any problems but everytime I want to use an Input Format I get the following error : &lt;/p&gt;
&lt;p&gt;&amp;quot;-2147024809 (80070057) : The specified input object is not a built-in Log Parser input format, nor a custom ILogParserInputContextCOM plugin [Incorrect parameter].&amp;quot;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t register the dll from its original install directory. I tried with numerous examples from all over the internet with nearly all Input dlls but it just won&amp;#39;t work...&lt;/p&gt;
&lt;p&gt;What I am doing wrong ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot !&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>how check Query syntax through code?</title><link>http://forums.iis.net/p/1149322/1869382.aspx#1869382</link><pubDate>Tue, 13 May 2008 10:39:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1869382</guid><dc:creator>Anwarhusen</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;I am using LogParser Com Object through c#. Is there any way&amp;nbsp;to check the syntax of query?&lt;/p&gt;</description></item><item><title>64 Bit Windows with 64 Bit .net 2.0 app and using 32 bit Logparser DLL</title><link>http://forums.iis.net/p/1149258/1869098.aspx#1869098</link><pubDate>Thu, 08 May 2008 14:21:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1869098</guid><dc:creator>SrChasJC</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;Anyone have any way to do this? They say it can&amp;#39;t be done:&lt;/p&gt;
&lt;p&gt;Why 64-bit apps cannot load 32-bit Dll&amp;#39;s &amp;amp; 32-bit apps load 64-bit Dll&amp;#39;s&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.codeproject.com/KB/system/64BitOSAndPortingIssues.aspx"&gt;http://www.codeproject.com/KB/system/64BitOSAndPortingIssues.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Freeware Custom LogParser Input - OLEDB (e.g. query Excel, Access, MSSQL etc)</title><link>http://forums.iis.net/p/1149010/1867927.aspx#1867927</link><pubDate>Wed, 23 Apr 2008 11:54:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1867927</guid><dc:creator>gluegood</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve published a LogParser Custom COM plugin input format which allows you to query any OLEDB datasource and use the LogParser engine to run queries against it.&amp;nbsp; Additionally allows you to query multiple datasources and I have&amp;nbsp;implemented the native CheckPoint facility.&lt;/p&gt;
&lt;p&gt;EXE and VB.NET 2005 source&amp;nbsp;from &lt;a class="" href="http://gluegood.blogspot.com/2008/04/freeware-logparseroledb.html"&gt;Gluegood blog&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Enjoy.&lt;/p&gt;
&lt;p&gt;e.g. Sample queries&lt;/p&gt;
&lt;p&gt;REM *** Excel ***&lt;br /&gt;LogParser.exe -i:COM &amp;quot;select * From &lt;strong&gt;&amp;#39;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\SOLVSAMP.XLS;Extended Properties=\&amp;quot;Excel 8.0;HDR=Yes;IMEX=1;\&amp;quot;&amp;#39;&lt;/strong&gt;&amp;quot; -iProgId:Gluegood.LogParser.OLEDB -iCOMParams:&lt;strong&gt;iQuery=&amp;quot;SELECT * FROM [Quick Tour$]&amp;quot;&lt;/strong&gt; -o:DataGrid&lt;/p&gt;
&lt;p&gt;REM *** MS-SQL Multiple Connections ***&lt;br /&gt;LogParser.exe -i:COM &amp;quot;select * From &lt;strong&gt;&amp;#39;Provider=SQLOLEDB;Server=SQLSERVER1;Database=DB1;Trusted_Connection=yes;&amp;#39;&lt;/strong&gt;, &lt;strong&gt;&amp;#39;Provider=SQLOLEDB;Server=SQLSERVER2;Database=DB2;Trusted_Connection=yes;&amp;#39;&lt;/strong&gt;&amp;quot; -iProgId:Gluegood.LogParser.OLEDB -iCOMParams:&lt;strong&gt;iQuery=&amp;quot;Select * From Table&amp;quot;&lt;/strong&gt;,&lt;strong&gt;iCheckPoint=&amp;quot;C:\CheckPointTest2.chk&amp;quot;&lt;/strong&gt; -o:DataGrid&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Having issues coming up with a way to store date and time separately in c# from an eventlog</title><link>http://forums.iis.net/p/1148957/1867664.aspx#1867664</link><pubDate>Sun, 20 Apr 2008 05:35:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1867664</guid><dc:creator>Trike</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll apologize first hand that i&amp;#39;m new to C# and programming in general. &lt;/p&gt;
&lt;p&gt;What I am trying to build, is a benchmark&amp;nbsp;console app that reads from an eventlog. Every time an event with a specific eventid is logged, is when&amp;nbsp;the process has been finished. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;What I&amp;#39;m doing currently is converting the TIMEGENERATED into a real type. I&amp;#39;m taking each event record and taking the difference from the next&amp;nbsp;event record&amp;nbsp;to get a processed time. My query looks like this.&lt;/p&gt;
&lt;p&gt;@&amp;quot;SELECT ALL TO_REAL(TO_TIME(TimeGenerated)) FROM barcode.evt Where&amp;nbsp; SourceName=&amp;#39;Service&amp;#39; AND eventid=7&amp;quot;;&lt;/p&gt;
&lt;p&gt;I cycle through the record set and store each&amp;nbsp;object into an array. Then&amp;nbsp;I do the calculations in the array.&lt;/p&gt;
&lt;p&gt;Currently I have a bug. This will only work for a single day. The query converts the time of each event to secs. Once&amp;nbsp;I get to&amp;nbsp;12:00am of the next day. The conversion becomes 0secs. My results end up becoming a negative number.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Now, I have just about everything re-written in an attempt to store the time and date separately and do my calculations that way. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Where I&amp;#39;m running into a problem is how to split up the date and time in one pass. My original thought process was to take the TimeGenerated data from logparser and split it up after I pulled it out of the record set. But I don&amp;#39;t know how to convert the TimeGenerated into date and time separately.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure how to convert the timestamp data and split up the date and time after I have it in a separate array. And or I&amp;#39;m not structuring my query correctly. Currently this is what&amp;nbsp;I have:&lt;/p&gt;
&lt;p&gt;@&amp;quot;SELECT ALL&amp;nbsp;TimeGenerated FROM barcode.evt Where SourceName=&amp;#39;Service&amp;#39; AND eventid=7&amp;quot;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what the correct approach would be. I could loop through the record set again, with a different query, but that will create too much overhead. As I&amp;#39;ll be dealing with around 100,000 records. &lt;/p&gt;
&lt;p&gt;Another option would be to store the timestamp data into an array as a string then attempt to parse the&amp;nbsp;time&amp;nbsp;or date&amp;nbsp;in the array, but I haven&amp;#39;t thought this one through all the way and not sure how to implement this approach yet. &lt;/p&gt;
&lt;p&gt;As&amp;nbsp;I said earlier,&amp;nbsp;I&amp;#39;m a beginner learning how to program in C#. Just looking for some direction on an approach to take. I&amp;#39;ve spent countless hours over the past few weeks putting this together, I feel I am very close&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated. &lt;/p&gt;
&lt;p&gt;Sorry for the very long post, I&amp;#39;m trying to be as detailed as I can. &lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description></item><item><title>Custom COM Input plugins - VB.NET 2005</title><link>http://forums.iis.net/p/1148441/1865466.aspx#1865466</link><pubDate>Sun, 16 Mar 2008 08:46:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1865466</guid><dc:creator>gluegood</dc:creator><cs:applicationKey>advanced_topics-51</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve decided to write a few custom COM Input plugins for Log Parser.&amp;nbsp; I haven&amp;#39;t seen any samples available on the Internet so I firstly decided to convert the VBScript&amp;nbsp;Log Parser sample SampleQFE to VB.NET.&amp;nbsp; It is available &lt;a class="" href="http://gluegood.blogspot.com/2008/03/freeware-logparsersampleqfe.html" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Additionally I had a go at a multiline Input plugin based on the Visual Source Safe (VSS) 6.0 Journal file.&amp;nbsp; Bit more tricky and implements a iCheckPoint feature using serialization.&amp;nbsp; It is available &lt;a class="" href="http://gluegood.blogspot.com/2008/03/freeware-logparservssjournal.html" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;All code is in VB.NET format and licensed under GNU v2.0 license.&lt;/p&gt;
&lt;p&gt;Given there isn&amp;#39;t a lot out there if anyone has any comments I&amp;#39;d appreciate some feedback.&amp;nbsp; I&amp;#39;ll continue building some more as time permits.&lt;/p&gt;
&lt;p&gt;P.S. I&amp;#39;ve also noted some advanced&amp;nbsp;Log Parser &lt;a class="" href="http://gluegood.blogspot.com/2008/01/advice-logparser.html" target="_blank"&gt;querying techniques&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>