<?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: Request for Help: Trying to put Logparser COM object into Sharepoint (C#)WEB PART; builds but error message says can't find Interop.MSUtil (even when it IS there)?...</title><link>http://forums.iis.net/thread/1853838.aspx</link><pubDate>Thu, 19 Jan 2006 16:48:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1853838</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1853838.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1853838</wfw:commentRss><description>Nothing more than a simple thanks is necessary.  I'm *very* happy to hear that after some study, the Filemon logs were able to help you trace down the problem.&lt;br&gt;&lt;br&gt;I can't tell you how many times in my career Sysinternals utilities have bailed me out.&lt;br&gt;I use probably half a dozen of them on a weekly basis.</description></item><item><title>RE: Request for Help: Trying to put Logparser COM object into Sharepoint (C#)WEB PART; builds but error message says can't find Interop.MSUtil (even when it IS there)?...</title><link>http://forums.iis.net/thread/1853837.aspx</link><pubDate>Thu, 19 Jan 2006 13:25:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1853837</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1853837.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1853837</wfw:commentRss><description>&lt;P&gt;Greetings all, &lt;/P&gt;&lt;P&gt;Well, Filemon came to the rescue, and showed me that my portal server was trying to find the Interop.MSUtil.dll assembly, but it wasn't in any of the paths the poral knew to look. &lt;/P&gt;&lt;P&gt;&lt;U&gt;When I:&lt;/U&gt; &lt;BR&gt;1. manually copied the Interop.MSUtil.dll to the same location my web part's assembly was being deployed; and &lt;BR&gt;2. upgraded my web apps' trust level from "WSS_Medium" to "Full" (in the web.config file), &lt;STRONG&gt;&lt;FONT color=#1111bb&gt;EVERYTHING WORKED !!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;All I have to do now is:&lt;/U&gt;&lt;BR&gt;1. find out why this Interop.MSUtil.dll is not being included in my Deployment Project's CAB; and &lt;BR&gt;2. determine the MINIMUM security privileges required (somewhere between WSS_Medium and Full) to access server event logs. &lt;/P&gt;&lt;P&gt;Once I determine this, I'll summarize in a final posting so it's useful for everyone else. &lt;/P&gt;&lt;P&gt;Thanks to DE - send me an email address to &lt;a target=_blank href="mailto:mark_vogt@vogtland.ws"&gt;mark_vogt@vogtland.ws&lt;/A&gt;, and I'll try to send you a modest gift certificate to imusic.com or the like - it's the least I can do for some truly useful and timely advice ! &lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;- Mark Vogt | Sharepoint consultant | &lt;a target=_blank href="mailto:mark_vogt@vogtland.ws"&gt;mark_vogt@vogtland.ws&lt;/A&gt; &lt;/P&gt;</description></item><item><title>RE: Request for Help: Trying to put Logparser COM object into Sharepoint (C#)WEB PART; builds but error message says can't find Interop.MSUtil (even when it IS there)?...</title><link>http://forums.iis.net/thread/1853836.aspx</link><pubDate>Wed, 18 Jan 2006 20:33:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1853836</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1853836.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1853836</wfw:commentRss><description>&lt;P&gt;Daniel, &lt;/P&gt;&lt;P&gt;Hmmm - interesting suggestions...&lt;BR&gt;I downloaded &amp;amp; installed Filemon (will add tools one at a time, testing each to see if it's useful before moving on),&lt;BR&gt; and got some possibly-useful clues.&lt;/P&gt;&lt;P&gt;I started Filemon, refreshed (re-requested) the web part page with the offending web part code, and got a mixture of success &amp;amp; failure log entries in Filemon. &lt;/P&gt;&lt;P&gt;Here is the entire snippet of the failure-related Filemon logfile lines: &lt;BR&gt;&lt;FONT color=#111199&gt;&lt;FONT size=1&gt;3:13:07 PM&amp;nbsp;Maxthon.exe:3868&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\index.dat&amp;nbsp;SUCCESS&amp;nbsp;Length: 688128&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\Interop.MSUtil.DLL&amp;nbsp;NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\Interop.MSUtil\Interop.MSUtil.DLL&amp;nbsp;PATH NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\inetpub\wwwroot\bin\Interop.MSUtil.DLL&amp;nbsp;NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\inetpub\wwwroot\bin\Interop.MSUtil\Interop.MSUtil.DLL&amp;nbsp;PATH NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\Interop.MSUtil.EXE&amp;nbsp;NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\2135a508\8d69a834\Interop.MSUtil\Interop.MSUtil.EXE&amp;nbsp;PATH NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\inetpub\wwwroot\bin\Interop.MSUtil.EXE&amp;nbsp;NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\inetpub\wwwroot\bin\Interop.MSUtil\Interop.MSUtil.EXE&amp;nbsp;PATH NOT FOUND&amp;nbsp;Attributes: Error&amp;nbsp;&lt;BR&gt;3:13:07 PM&amp;nbsp;w3wp.exe:1952&amp;nbsp;QUERY INFORMATION&amp;nbsp;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\1033\SPS\default.aspx&amp;nbsp;SUCCESS&amp;nbsp;Attributes: A&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;As you may have expected, there ARE a number of errors, but I don't know how to accurately interpret them. &lt;BR&gt;Are they: &lt;BR&gt;- problems with the way I've ADDED&amp;nbsp;the offending COM (dll) assembly to my VS.NET project? &lt;BR&gt;- problems with the way I've BUILT the solution - is there something that needs to be explicitly added to my CAB output? &lt;BR&gt;- problems with OTHER manual housekeeping-related tasks - like copying the Interop.MSUtil.dll to the location the above queries are LOOKING? &lt;BR&gt;- other stuff I've not thought of? &lt;/P&gt;&lt;P&gt;I sense we may be on the right track, so help me (and everyone else in this boat) out, and name your beer-equivalent reward...&lt;BR&gt;;-)&lt;/P&gt;&lt;P&gt;In the meantime, I'll try to decipher the above entries, and report back my progress/findings. &lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;- Mark Vogt, Sharepoint Consultant | &lt;a target=_blank href="mailto:mark.vogt@vogtland.ws"&gt;mark.vogt@vogtland.ws&lt;/A&gt;&lt;/P&gt;</description></item><item><title>RE: Request for Help: Trying to put Logparser COM object into Sharepoint (C#)WEB PART; builds but error message says can't find Interop.MSUtil (even when it IS there)?...</title><link>http://forums.iis.net/thread/1853913.aspx</link><pubDate>Wed, 18 Jan 2006 19:47:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1853913</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1853913.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1853913</wfw:commentRss><description>This is not the help that will get me a shipment of beer (which is fine since I dislike beer &lt;img src='images/emotions/wink.gif' height='20' width='20' border='0' title='Wink' align='absmiddle'&gt; but I did want to mention that when you get into these inscrutable file not found type of errors, sometimes FileMon from Sysinternals can help give you an idea.  You can set it to log only errors and at least get a better sense of where exactly the file not found or security error is occurring in the grand scheme of things.&lt;br&gt;&lt;br&gt;Best of luck in figuring it out. :/&lt;br&gt;&lt;br&gt;</description></item><item><title>Request for Help: Trying to put Logparser COM object into Sharepoint (C#)WEB PART; builds but error message says can't find Interop.MSUtil (even when it IS there)?...</title><link>http://forums.iis.net/thread/1850605.aspx</link><pubDate>Wed, 18 Jan 2006 18:49:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1850605</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1850605.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1143&amp;PostID=1850605</wfw:commentRss><description>&lt;B&gt;&lt;FONT color=#ff0000&gt;&lt;P&gt;Greetings all - I need help, and have exhausted all known resources...&lt;/B&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;I'm trying to code Logparser-generated reports into a Sharepoint Web Part, but I'm getting error messages from the web server as soon as I try to instantiate a LogQuery object. &lt;/P&gt;&lt;P&gt;Here are snippets of the relevant code (all copied / pasted verbatum from Logparser CHM file): &lt;BR&gt;//================================================v&lt;BR&gt;...&lt;BR&gt;&lt;FONT color=#008000&gt;// here are the relevant "using" directives... &lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; LogQuery = MSUtil.LogQueryClassClass;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; EventLogInputFormat = MSUtil.COMEventLogInputContextClassClass;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; LogRecordSet = MSUtil.ILogRecordset;&lt;BR&gt;...&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// here's the code attempting to instantiate a LogQuery object...&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Instantiate the LogQuery object...&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;LogQuery oLogQuery = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; LogQuery(); &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;&amp;lt;------ this is the line that causes error !!! &lt;img src='images/emotions/crying.gif' height='20' width='20' border='0' title='Crying' align='absmiddle'&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;BR&gt;...&lt;BR&gt;//================================================^&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color=#0000ff size=4&gt;&lt;P&gt;Here's what I know:&lt;/P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;1. My environment is a standalone VPC running BOTH Sharepoint2003, VS.NET2003 and Logparser.&lt;BR&gt;2. I HAVE installed (and used) Logparser.exe on The Sharepoint Server&lt;BR&gt;3. I HAVE manually registered logparser.dll on the server using C:\regsvr32 logparser.dll, and confirmed the operation was successful (got the pop-up alert confirming success)&lt;BR&gt;4. The project DOES build successfully -both the assembly and the CAB file for deployment. &lt;BR&gt;5. I deploy the web part using "STSADM.exe" -o addwppack -filename "C:\GGPDevelopment\GGPWebParts\CCUsageReportCAB\Debug\CCUsageReportCAB.CAB" -force "&lt;BR&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT color=#ff0000&gt;&lt;FONT size=3&gt;[note - This should (and does) deploy the web part assembly (CCUsageReport.dll) to the c:\inetpub\wwwroot\bin\ccusagereport.dll as expected and desired - NOT the GAC... ]&lt;BR&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;FONT size=3&gt;6. I have trust = WSS_Medium set in my c:\inetpub\wwwroot\config\web.config file. &lt;BR&gt;7. I SUCCESSFULLY build the project (solution with web part project and related CAB file).&lt;BR&gt;8. I SUCCESSFULLY deploy the CAB file (get success message from STSADM.exe).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;BUT...&lt;/P&gt;&lt;P&gt;When I drag &amp;amp; drop the web part from the web part gallery onto a page...&lt;/P&gt;&lt;P&gt;I get the following error message: &lt;/P&gt;&lt;B&gt;&lt;FONT size=6&gt;&lt;P&gt;Server Error in '/' Application. &lt;/P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;B&gt;&lt;I&gt;&lt;FONT size=5&gt;&lt;P&gt;File or assembly name Interop.MSUtil, or one of its dependencies, was not found.&lt;/I&gt; &lt;/P&gt;&lt;/FONT&gt;&lt;FONT face=Verdana&gt;&lt;P&gt;Description: &lt;/B&gt;&lt;/FONT&gt;&lt;FONT face=Arial&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Exception Details: &lt;/B&gt;&lt;/FONT&gt;&lt;FONT face=Arial&gt;System.IO.FileNotFoundException: File or assembly name Interop.MSUtil, or one of its dependencies, was not found.&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;The Stack Trace is as follows:&lt;/B&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/P&gt;&lt;B&gt;&lt;P&gt;Stack Trace:&lt;/B&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt; &lt;BR&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width=624 border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=center bgColor=#ffff00&gt;&lt;FONT face="Courier New" size=2&gt;&lt;P&gt;[FileNotFoundException: File or assembly name Interop.MSUtil, or one of its dependencies, was not found.]&lt;/P&gt;&lt;P&gt;CCUsageReport.CCUsageReport.RenderWebPart(HtmlTextWriter output) +0&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.WebPartPages.WebPart.b(HtmlTextWriter A_0)&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.WebPartPages.WebPart.o(HtmlTextWriter A_0)&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.WebPartPages.WebPart.Render(HtmlTextWriter writer)&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.WebPartPages.WebPartZone.a(HtmlTextWriter A_0, Boolean A_1, WebPart A_2)&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.WebPartPages.WebPartZone.a(HtmlTextWriter A_0, ArrayList A_1)&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.WebPartPages.WebPartZone.Render(HtmlTextWriter output)&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72&lt;/P&gt;&lt;P&gt;System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44&lt;/P&gt;&lt;P&gt;System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +262&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72&lt;/P&gt;&lt;P&gt;System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +29&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243&lt;/P&gt;&lt;P&gt;ASP.default_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in default.aspx:15&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.Portal.WebControls.WebPartPage.RenderChildren(HtmlTextWriter writer)&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.Render(HtmlTextWriter writer) +7&lt;/P&gt;&lt;P&gt;Microsoft.SharePoint.Portal.WebControls.WebPartPage.Render(HtmlTextWriter writer)&lt;/P&gt;&lt;P&gt;System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243&lt;/P&gt;&lt;P&gt;System.Web.UI.Page.ProcessRequestMain() +1926&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;FONT size=2&gt;&lt;P&gt;Lastly, here is a screenshot of my environment, showing NO problems with adding the MSUtils reference to my project: &lt;BR&gt;&lt;IMG style="WIDTH: 616px; HEIGHT: 609px" height=768 alt="" hspace=0 src="file:///S:/SCREENSHOT%20-%20vs.net%20dev%20environment.png" width=1023 align=baseline border=0&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;WITH ALL OF THIS KNOWN, can anyone tell me why I'm getting an error message that Interop.MSUtil or one of its dependencies is NOT found?!!&lt;/P&gt;&lt;P&gt;I've tried EVERYTHING I can think of:&lt;BR&gt;- adding "using MSUtils;" (didn't work);&lt;BR&gt;- deploying to the GAC (didn't work, and had to add strong name to the assembly as well);&lt;BR&gt;- re-adding the actual Interop.MSUtil.dll to the project (which I perceive was redundant &amp;amp; bad); &lt;/P&gt;&lt;P&gt;This is supposed to be a straightforward problem, but all I can guess is that when this code lives in a web part that lives in a SHAREPOINT environment... "something" happens. &lt;/P&gt;&lt;P&gt;Any genuine, productive help will be answered with an immediate shipment of the beer of The Helper's choice. &lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;- Mark, Sharepoint Consultant | VOGTLAND | &lt;a target=_blank href="mailto:mark.vogt@vogtland.ws" target=_blank&gt;&lt;U&gt;&lt;FONT color=#0000ff&gt;mark.vogt@vogtland.ws&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;</description></item></channel></rss>