<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.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/"><channel><title>Steve Schofield Weblog : ASP.NET</title><link>http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx</link><description>Tags: ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Response.write saves the day. Display the last X number of event log records using ASP.NET on a remote machine.</title><link>http://weblogs.asp.net/steveschofield/archive/2009/04/02/write-out-the-last-x-number-of-records-using-asp-net.aspx</link><pubDate>Fri, 03 Apr 2009 02:11:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7023640</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/steveschofield/rsscomments.aspx?PostID=7023640</wfw:commentRss><comments>http://weblogs.asp.net/steveschofield/archive/2009/04/02/write-out-the-last-x-number-of-records-using-asp-net.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;It's been a while since I wrote an ASP.NET app, at least 5 years.&amp;nbsp;&amp;nbsp;:)&amp;nbsp;&amp;nbsp; I&amp;nbsp;needed to query remote servers to get the last X numbers of Event log entries.&amp;nbsp;&amp;nbsp; One snag I ran into was trying to use the DataGrid or GridView controls.&amp;nbsp; I kept getting "Index out of bounds" error when trying to write the Message (Description) part of an event log message.&amp;nbsp;&amp;nbsp; I reverted to my 'old Classic ASP' days and used response.write.&amp;nbsp;&amp;nbsp; I never did find a solution using the built-in controls.&amp;nbsp;&amp;nbsp; For those who want to allow others to view event logs w/o granting local access, your application pool needs the appropriate permissions.&amp;nbsp; I setup the application pool to run as a user that can access event logs.&amp;nbsp; Hope this helps.&amp;nbsp; PS: I even have color coding! :)&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Default.aspx&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;html&amp;gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;body&amp;gt;&lt;BR&gt;&amp;lt;form runat=server id=form1&amp;gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;table class="style1"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class="style2"&amp;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; Number of records:&amp;lt;/td&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;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;lt;asp:DropDownList ID="DropDownList3" runat="server" TabIndex="0"&amp;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; &amp;lt;asp:ListItem Selected="True"&amp;gt;10&amp;lt;/asp:ListItem&amp;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; &amp;lt;asp:ListItem&amp;gt;25&amp;lt;/asp:ListItem&amp;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; &amp;lt;asp:ListItem&amp;gt;50&amp;lt;/asp:ListItem&amp;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;lt;/asp:DropDownList&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class="style2"&amp;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; Machine Name:&amp;lt;/td&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;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;lt;asp:DropDownList ID="DropDownList2" runat="server" TabIndex="0"&amp;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;lt;asp:ListItem Selected="True"&amp;gt;ServerX&amp;lt;/asp:ListItem&amp;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;lt;asp:ListItem&amp;gt;ServerY&amp;lt;/asp:ListItem&amp;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;lt;asp:ListItem&amp;gt;ServerZ&amp;lt;/asp:ListItem&amp;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;lt;/asp:DropDownList&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;lt;/tr&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class="style2"&amp;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; Event Log&amp;lt;/td&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;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;lt;asp:DropDownList ID="DropDownList1" runat="server" TabIndex="1"&amp;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; &amp;lt;asp:ListItem Selected="True"&amp;gt;Application&amp;lt;/asp:ListItem&amp;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; &amp;lt;asp:ListItem&amp;gt;Security&amp;lt;/asp:ListItem&amp;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; &amp;lt;asp:ListItem&amp;gt;System&amp;lt;/asp:ListItem&amp;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;lt;/asp:DropDownList&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;BR&gt;&amp;lt;/table&amp;gt;&lt;BR&gt;&amp;amp;nbsp;&amp;lt;br /&amp;gt;&lt;BR&gt;&amp;lt;br /&amp;gt;&lt;BR&gt;&amp;lt;br /&amp;gt;&lt;BR&gt;&amp;lt;br /&amp;gt;&lt;BR&gt;&amp;lt;asp:Button ID="Button1" runat="server" Text="Button" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataKeyNames="TimeGenerated" EnableTheming="False" EnableViewState="False" &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PageIndex="1" PageSize="11"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Columns&amp;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;lt;asp:BoundField DataField="Message" /&amp;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;lt;asp:BoundField DataField="TimeGenerated" HeaderText="Daetime" &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; SortExpression="TimeGenerated" /&amp;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;lt;asp:BoundField DataField="Source" HeaderText="Source" &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; SortExpression="Source" /&amp;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;lt;asp:BoundField DataField="EntryType" HeaderText="EntryType" &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; SortExpression="EntryType" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Columns&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:GridView&amp;gt;&lt;BR&gt;&amp;lt;asp:DataGrid id="LogGrid" runat="server"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderColor="black"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderWidth="1"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GridLines="Both"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CellPadding="3"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CellSpacing="0"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Font-Name="Verdana"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Font-Size="8pt"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HeaderStyle-BackColor="#aaaadd"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerateColumns="False" &lt;BR&gt;&amp;nbsp;PageSize="25" &lt;BR&gt;&amp;nbsp;Font-Names="Verdana"&lt;BR&gt;&amp;nbsp;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Columns&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundColumn HeaderText="TOF" DataField="EntryType" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundColumn HeaderText="Date/Time" DataField="TimeGenerated"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundColumn HeaderText="Source" DataField="Source"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:BoundColumn HeaderText="Message" DataField="Message"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Columns&amp;gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;HeaderStyle BackColor="#AAAADD"&amp;gt;&amp;lt;/HeaderStyle&amp;gt;&lt;BR&gt;&amp;lt;/asp:DataGrid&amp;gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;br /&amp;gt;&lt;BR&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Default.aspx.vb&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Partial Class _Default&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits System.Web.UI.Page&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Page.IsPostBack = True Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(DropDownList2.Text.ToString() &amp;amp; "&amp;lt;br&amp;gt;")&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim aLog As New Diagnostics.EventLog&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;dim z as integer = DropDownList3.Text&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; aLog.MachineName = DropDownList2.Text&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; aLog.Log = DropDownList1.Text&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'LogGrid.DataSource = aLog.Entries&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; 'LogGrid.DataBind()&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'GridView1.DataSource = aLog.Entries&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'GridView1.DataBind()&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; Dim y As Integer = 0&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; Response.Write("&amp;lt;table border=2 cellpadding=2 width='100%'&amp;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; Response.Write("&amp;lt;b&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Counter&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;TOF&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;TimeGenerated&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Source&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Message&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/b&amp;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; Dim item As Diagnostics.EventLogEntry&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; For Each item In aLog.Entries&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; y = y + 1&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; If y = z Then&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&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; End If&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; Response.Write("&amp;lt;tr&amp;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; Response.Write("&amp;lt;td&amp;gt;" &amp;amp; y &amp;amp; "&amp;lt;/td&amp;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; Response.Write("&amp;lt;td&amp;gt;" &amp;amp; aLog.Entries.Item(aLog.Entries.Count - y).EntryType.ToString() &amp;amp; "&amp;lt;/td&amp;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; Response.Write("&amp;lt;td bgcolor='#FFFF99'&amp;gt;" &amp;amp; aLog.Entries.Item(aLog.Entries.Count - y).TimeGenerated.ToString() &amp;amp; "&amp;lt;/td&amp;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; Response.Write("&amp;lt;td&amp;gt;" &amp;amp; aLog.Entries.Item(aLog.Entries.Count - y).Source.ToString() &amp;amp; "&amp;lt;/td&amp;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; Response.Write("&amp;lt;td bgcolor='#FFFF99'&amp;gt;" &amp;amp; aLog.Entries.Item(aLog.Entries.Count - y).Message.ToString() &amp;amp; "&amp;lt;/td&amp;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; Response.Write("&amp;lt;/tr&amp;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; Next&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; Response.Write("&amp;lt;/table&amp;gt;")&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;BR&gt;End Class&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Here is the event log class reference on MSDN &lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx" mce_href="http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Cheers,&lt;/P&gt;
&lt;P mce_keep="true"&gt;Steve&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7023640" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>IIS and .NET 2.0 interview questions</title><link>http://weblogs.asp.net/steveschofield/archive/2007/08/09/iis-and-net-2-0-interview-questions.aspx</link><pubDate>Thu, 09 Aug 2007 12:17:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3446709</guid><dc:creator>steve schofield</dc:creator><slash:comments>11</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/steveschofield/rsscomments.aspx?PostID=3446709</wfw:commentRss><comments>http://weblogs.asp.net/steveschofield/archive/2007/08/09/iis-and-net-2-0-interview-questions.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;I had a 2 hour layover and was browsing the newsgroups.&amp;nbsp; A person posted a question wondering about interview questions regarding IIS and .NET 2.0.&amp;nbsp; I'm sure there are many other questions that I didn't think to ask, here is the list I came up with.&amp;nbsp; If you have any questions, feel free to post them to the comments and I'll update the thread.&lt;/P&gt;
&lt;P mce_keep="true"&gt;PS: This is meant for a 'systems' or 'itpro' type person and not necessarily a developer type individual.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;General IIS related questions&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;How do you isolate and troubleshoot an ASP and / or ASP.NET application?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What is your idea of locking down a server?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;How do you feel about having developers or anyone else making changes directly in production?&amp;nbsp; Aka how do you normally handle change management.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What perfmon counters do you find useful in troubleshooting an IIS or related problem.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you have experience in working with web-farms, load-balancing environments?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What is your ideal way of handling content.&amp;nbsp; Remote Storage / NAS (network attached storage) vs. local content and replication.&amp;nbsp; If you use local content and replication what tools do you to use?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Are you familiar with DFS?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What debugging tools do you use for IIS?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What / Where would you put global .NET settings.&amp;nbsp; How would you lock them down?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you have any experience with SSL certificates?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you have experience with machines with multiple IP's and how to handle several sites / applications on a machine.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What is your preference of handling machine accounts?&amp;nbsp; Do you like local vs. Active Directory based accounts.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you have experience with working in an AD environment that supports IIS.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you have experience with NLB (network load balancing) that comes with IIS.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;How do you monitor the applications / sites to ensure the uptime is appropriate.&amp;nbsp; This might apply more to a monitoring environment, but it is good to know what to monitor.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Are you familiar with compression and the benefits.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know what MIME types are for?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know how to list all running applications on a server to determine which application pools are owned by what sites. (IISAPP)&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Are you familiar with IISState, IIS Debug Diag. SSL Diag, SMTPDiag in the resource kit.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What tools do you use or have experience in load-testing an application. &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What are some of the tools provided by MS.&amp;nbsp; WCAT, TinyGet, WAST.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know how to configure host-headers and how they related to DNS.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What is your backup and recovery strategy for IIS&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;How would you handle migrating to another box?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;How do you handle changes in IIS, scripting or manual changes?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Are you familiar with scripting languages such as VBScript, JScript, Powershell.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Are you familiar with IISCfg and related scripts such as adsutil&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you have experience supporting multiple environments of IIS (different domains, dev / test /integration / production)&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Are you familiar with ways to connect to remote databases such as db2, oracle, sql server&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know the differences between anonymous, integrated, basic, digest authentication.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What is your preferred method of publishing content?&amp;nbsp; FTP? FrontPage? WebDAV? Folder copy? Publish to a staging machine and replicate to the content source either on a nas or individual nodes.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Are you familiar with the other services in SMTP, FTP?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know how to configure a smarthost?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Does the built-in FTP service support host-headers?&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know the benefits of using a COM+ package vs. Regsvr32&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What certain local group is necessary if it is configured as a application pool user.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know how to check a COM+ component to ensure it will not leak memory.&lt;BR&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;.NET 2.0&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Can you run the 1.1 and 2.0 on the same box?&amp;nbsp; What are the limitations.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Can you explain what the '/bin'&amp;nbsp; folder is used for.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know what user instancing is.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you know the difference between precompiled applications and publishing the source code.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Do you have any experience with partial trust or CAS (code access security)&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What types of things cause an appdomain or application pool recycle.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What are the new folders in .NET 2.0 and what are they used for.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;How / why does the machine key need to be the same across all machines in a web-farm.&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;IIS7&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What makes the IUSR account unique in IIS7 vs. previous versions.&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What are some of the new ways of troubleshooting, Logging in IIS7&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;What are the major benefits of IIS7?&amp;nbsp; (FREB, Integrated Pipeline, IUSR same on all w2k8 boxes, Shared configuration, Modular architecture, configuration changes&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3446709" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/steveschofield/archive/tags/IIS/default.aspx">IIS</category><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Changing ASP.net script mapping default</title><link>http://weblogs.asp.net/steveschofield/archive/2007/07/07/changing-asp-net-script-mapping-default.aspx</link><pubDate>Sat, 07 Jul 2007 04:09:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3048315</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/steveschofield/rsscomments.aspx?PostID=3048315</wfw:commentRss><comments>http://weblogs.asp.net/steveschofield/archive/2007/07/07/changing-asp-net-script-mapping-default.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;I've ran across this a few times, so I thought I'd put a blog posting on it for future reference.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://forums.iis.net/t/1108591.aspx"&gt;http://forums.iis.net/t/1108591.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3048315" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/steveschofield/archive/tags/IIS/default.aspx">IIS</category><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>IIS7 - post #31 - Adrotator on IIS7 / Vista / BC32400: Class 'CLSID_CorSymWriter' could not be created: Access is denied. </title><link>http://weblogs.asp.net/steveschofield/archive/2007/02/23/iis7-post-30-adrotator-on-iis7-vista-bc32400-class-clsid-corsymwriter-could-not-be-created-access-is-denied.aspx</link><pubDate>Fri, 23 Feb 2007 18:47:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1771674</guid><dc:creator>steve schofield</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/steveschofield/rsscomments.aspx?PostID=1771674</wfw:commentRss><comments>http://weblogs.asp.net/steveschofield/archive/2007/02/23/iis7-post-30-adrotator-on-iis7-vista-bc32400-class-clsid-corsymwriter-could-not-be-created-access-is-denied.aspx#comments</comments><description>&lt;p&gt;I was working with the&lt;a href="http://quickstart.developerfusion.co.uk/QuickStart/aspnet/doc/ctrlref/standard/adrotator.aspx"&gt; Adrotator component&lt;/a&gt; included in .NET 2.0 on Vista and IIS7.&amp;nbsp; I was getting this error; &lt;strong&gt;BC32400: Class &amp;#39;CLSID_CorSymWriter&amp;#39; could not be created: Access is denied.&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&amp;nbsp; It worked on my other vista machine,&amp;nbsp;so I knew it was specific to my machine.&amp;nbsp;&amp;nbsp;I&amp;nbsp;ran&amp;nbsp;&lt;a href="http://www.microsoft.com/technet/sysinternals/default.mspx"&gt;Process Monitor (aka Filemon)&lt;/a&gt; and found two registry keys that were getting denied.&amp;nbsp; After adding Network Service with READ permissions, this started working.&amp;nbsp;&amp;nbsp;&amp;nbsp; PS: It was fun to actually use Filemon to track down a problem of my own, I mention this tool in many newsgroup posting.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Here is a picture of the output. &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;img height="525" src="http://iislogs.com/images/adrotator.jpg" style="width: 1036px; height: 525px" width="1036" /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;Here is the raw output of the error&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Server Error in &amp;#39;/&amp;#39; Application.&lt;br /&gt;--------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;Compilation Error &lt;br /&gt;Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. &lt;/p&gt;&lt;p&gt;Compiler Error Message: BC32400: Class &amp;#39;CLSID_CorSymWriter&amp;#39; could not be created: Access is denied. &lt;/p&gt;&lt;p&gt;Source Error:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[No relevant source lines]&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Source File: vbc :&amp;nbsp;&amp;nbsp;&amp;nbsp; Line: 0 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Show Detailed Compiler Output:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;c:\windows\system32\inetsrv&amp;gt; &amp;quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe&amp;quot; /t:library /utf8output /R:&amp;quot;C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll&amp;quot; /R:&amp;quot;C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll&amp;quot; /out:&amp;quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_ads.aspx.cdcab7d2.p_oyg97i.dll&amp;quot; /D:DEBUG=1 /debug+ /define:_MYTYPE=\&amp;quot;Web\&amp;quot; /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls&amp;nbsp; &amp;quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_ads.aspx.cdcab7d2.p_oyg97i.0.vb&amp;quot; &amp;quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_ads.aspx.cdcab7d2.p_oyg97i.1.vb&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Microsoft (R) Visual Basic Compiler version 8.0.50727.312&lt;br /&gt;for Microsoft (R) .NET Framework version 2.0.50727.312&lt;br /&gt;Copyright (c) Microsoft Corporation.&amp;nbsp; All rights reserved.&lt;/p&gt;&lt;p&gt;vbc : error BC32400: Class &amp;#39;CLSID_CorSymWriter&amp;#39; could not be created: Access is denied. &lt;br /&gt;vbc : error BC31019: Unable to write to output file &amp;#39;C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_ads.aspx.cdcab7d2.p_oyg97i.pdb&amp;#39;: Access is denied. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Steve Schofield&lt;br /&gt;Microsoft MVP - IIS&lt;br /&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1771674" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/steveschofield/archive/tags/IIS/default.aspx">IIS</category><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Cool post about.....us!</title><link>http://weblogs.asp.net/steveschofield/archive/2006/07/14/Cool-post-about_2E002E002E002E002E00_us_2100_.aspx</link><pubDate>Fri, 14 Jul 2006 13:41:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:457396</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/steveschofield/rsscomments.aspx?PostID=457396</wfw:commentRss><comments>http://weblogs.asp.net/steveschofield/archive/2006/07/14/Cool-post-about_2E002E002E002E002E00_us_2100_.aspx#comments</comments><description>Steve Smith (&lt;a href="http://aspalliance.com" target="_blank" title="ASPAlliance.com"&gt;ASPAlliance.com&lt;/a&gt;) recently blogged about his hosting experience with us (&lt;a href="http://www.orcsweb.com" target="_blank" title="ORCSWeb.com"&gt;ORCSWeb.com&lt;/a&gt;).&amp;nbsp; Here is the link to the post. &lt;a href="http://aspadvice.com/blogs/ssmith/archive/2006/07/14/19652.aspx"&gt;http://aspadvice.com/blogs/ssmith/archive/2006/07/14/19652.aspx&lt;/a&gt;&amp;nbsp;It&amp;nbsp;is a bit of a shame-less post too, I am mentioned for being an &amp;#39;ubergeek&amp;#39;, which I am.&amp;nbsp; [:)]&amp;nbsp;&amp;nbsp; Thanks Steve for the nice comments!&amp;nbsp; If you need a great ASP/ASP.Net resource, &lt;a href="http://aspalliance.com/"&gt;http://aspalliance.com&lt;/a&gt; is a great site to bookmark.&amp;nbsp;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=457396" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/steveschofield/archive/tags/IIS/default.aspx">IIS</category><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Joe Stagner presenting at our July 20th (GLUGnet) user group meeting.</title><link>http://weblogs.asp.net/steveschofield/archive/2006/06/25/Joe-Stagner-presenting-at-our-July-20th-_2800_GLUGnet_2900_-user-group-meeting_2E00_.aspx</link><pubDate>Mon, 26 Jun 2006 00:37:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:454705</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/steveschofield/rsscomments.aspx?PostID=454705</wfw:commentRss><comments>http://weblogs.asp.net/steveschofield/archive/2006/06/25/Joe-Stagner-presenting-at-our-July-20th-_2800_GLUGnet_2900_-user-group-meeting_2E00_.aspx#comments</comments><description>&lt;P&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT color=#000000&gt;&lt;FONT size=1&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Mark your calender, here is information about our next user group meeting!&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT face=Verdana color=#000000 size=1&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT face=Verdana color=#000000 size=1&gt; &lt;STRONG&gt;The evolution of the Web Application User Experience with Microsoft Atlas - &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT face=Verdana color=#000000 size=1&gt;Web 2.0 &amp;amp; AJAX are&amp;nbsp; the buzzwords of the next generation of web development. This session will provide a look into Microsoft’s new Web Development technology “Atlas”. Atlas combines rich, cross browser client side libraries with ASP.NET’s&amp;nbsp; popular server side development technology to offer an ideal&amp;nbsp; developer’s toolbox for developing the next generation of Web Applications. &lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT color=#000000&gt;&lt;FONT size=1&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Speaker: &lt;/STRONG&gt;- &lt;STRONG&gt;Joe Stagner (&lt;A href="http://www.joeon.net/"&gt;http://www.joeon.net/&lt;/A&gt;) &lt;/STRONG&gt;is a Program Manager in Microsoft Corporation’s Developer Tools and Platform Group and has been with Microsoft since 2001 focusing on highly scalable and performant web application architectures, multiplatform interoperability and software security.&amp;nbsp; Joe brings 30 years technical and business strategy experience to Microsoft which affords him a unique experiential perspective.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;UL&gt;&lt;/UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT color=#000000&gt;&lt;FONT size=1&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT color=#000000&gt;&lt;FONT size=1&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;Sponsor: &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="http://www.glugnet.org/"&gt;&lt;U&gt;&lt;FONT face=Verdana color=#0000ff size=1&gt;GLUGnet&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;FONT face=Verdana size=1&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT face=Verdana color=#000000 size=1&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;&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;P&gt;&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color=#ff0000&gt;&lt;FONT face=Verdana&gt;&lt;FONT color=#ff0000&gt;&lt;STRONG&gt;!!-Prizes:&lt;/STRONG&gt; Dell 19inch LCD monitor, books, and other cool swag will be given out for our&amp;nbsp;July meeting-!!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=454705" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ajax/default.aspx">ajax</category></item><item><title>Looking for SMTP service in IIS 7 / Longhorn beta 2.</title><link>http://weblogs.asp.net/steveschofield/archive/2006/05/29/Looking-for-SMTP-service-in-IIS-7-_2F00_-Longhorn-beta-2_2E00_.aspx</link><pubDate>Mon, 29 May 2006 04:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:449489</guid><dc:creator>steve schofield</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/steveschofield/rsscomments.aspx?PostID=449489</wfw:commentRss><comments>http://weblogs.asp.net/steveschofield/archive/2006/05/29/Looking-for-SMTP-service-in-IIS-7-_2F00_-Longhorn-beta-2_2E00_.aspx#comments</comments><description>&lt;P&gt;I was looking to install SMTP service and could not find under the "web server" role.&amp;nbsp;&amp;nbsp; Here are the instructions in the help file.&amp;nbsp; Hope this helps.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How to Add Features to Your Server&lt;BR&gt;&lt;/STRONG&gt;In Windows Server "Longhorn" Beta 2, you can add most available features to your server by using the Add Features Wizard.&lt;/P&gt;
&lt;P&gt;Adding Features to Your Server by Using the Add Features Wizard&lt;/P&gt;
&lt;P&gt;Adding Features to Your Server by Using the Add Features Wizard&lt;BR&gt;You can add the following features by using the Add Features Wizard.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Windows Activation Service (WAS) 
&lt;LI&gt;Background Intelligent Transfer Service (BITS) Server Extensions 
&lt;LI&gt;Desktop Experience 
&lt;LI&gt;Windows Clustering 
&lt;LI&gt;Windows Server Backup 
&lt;LI&gt;Line Print Remote Port Monitor 
&lt;LI&gt;Microsoft Message Queuing (MSMQ) Services 
&lt;LI&gt;Windows Network Load Balancing 
&lt;LI&gt;Remote Access Service (RAS) Client 
&lt;LI&gt;Remote Assistance 
&lt;LI&gt;Remote Procedure Calls over HTTP Proxy 
&lt;LI&gt;Simple Mail Transfer Protocol (SMTP) Server 
&lt;LI&gt;Storage Manager for Storage Area Networks 
&lt;LI&gt;Simple TCP/IP Services 
&lt;LI&gt;Subsystem for UNIX-based Applications 
&lt;LI&gt;Telnet Client 
&lt;LI&gt;Telnet Server 
&lt;LI&gt;Windows Internal Database 
&lt;LI&gt;Windows Internet Name Service (WINS) 
&lt;LI&gt;Windows System Resource Manager (WSRM) 
&lt;LI&gt;Windows Foundation Components for WinFX 
&lt;LI&gt;Wireless Networking 
&lt;LI&gt;SQL Server 2005 Embedded Edition (Windows) 
&lt;LI&gt;iSNS Server 
&lt;LI&gt;Windows Search Service 
&lt;LI&gt;Indexing Service 
&lt;LI&gt;Bitlocker Drive Encryption&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Open the Add Features Wizard in one of the following two ways.&lt;/P&gt;
&lt;P&gt;To start the Add Features Wizard&lt;BR&gt;In the Features Summary area of the Server Manager main window, click Add Features.&lt;/P&gt;
&lt;P&gt;-- or --&lt;/P&gt;
&lt;P&gt;In the Customize this server area of the Initial Configuration Tasks window, click Add Features.&lt;/P&gt;
&lt;P&gt;Note &lt;BR&gt;The Initial Configuration Tasks window opens by default when a member of the Administrators group logs on to the computer.&lt;/P&gt;
&lt;P&gt;Server Manager opens when the Initial Configuration Tasks window is closed. You can also open Server Manager by using shortcuts on the Start menu or in Administrative Tools.&lt;/P&gt;
&lt;P&gt;Steve Schofield&lt;BR&gt;Microsoft MVP - ASP/ASP.NET&lt;BR&gt;ASPInsider Member - MCP&lt;/P&gt;
&lt;DIV&gt;&lt;A href="http://www.orcsweb.com/"&gt;&lt;FONT color=#006ff7&gt;http://www.orcsweb.com/&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;Managed Complex Hosting&lt;BR&gt;#1 in Service and Support&lt;/DIV&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=449489" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/steveschofield/archive/tags/IIS/default.aspx">IIS</category><category domain="http://weblogs.asp.net/steveschofield/archive/tags/Vista/default.aspx">Vista</category><category domain="http://weblogs.asp.net/steveschofield/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>