Archive for the Category debug

 
 

Using the Visual Studio .NET 2003 Debugger with ASP.NET Applications

This article outlines the more commonly seen problems associated with debugging ASP.NET applications, shows examples of the errors, and explains how to fix them.

[ Via Giulio Vian's WebLog ]

Interesting links for configuring remote debugging

Interesting links for configuring remote debugging:

[Via mszCool's Developer Discussion Cave]

Log4net Viewer has moved to Project Distributor

Log4net Viewer 0.0.0.7 has moved to Project Distributor

Download Log4Net Viewer

Invoking the Microsoft Log Parser COM Interface from managed code ( C# )

This will create an XML file that has your url’s that are refered to, hit count, and the referrer.

try
{
    Type comLogQueryType = 
        Type.GetTypeFromProgID("MSUtil.LogQuery", true);
    object comLogQueryObject = 
        Activator.CreateInstance(comLogQueryType);
 
    // Get the IIS Input and XML output filters
    Type ws3LogType = 
        Type.GetTypeFromProgID("MSUtil.LogQuery.IISW3CInputFormat", true);
    object ws3LogObject = 
        Activator.CreateInstance(ws3LogType);
    Type xmlLogType = 
        Type.GetTypeFromProgID("MSUtil.LogQuery.XMLOutputFormat", true);
    object xmlLogObject = 
        Activator.CreateInstance(xmlLogType);
 
    // Setup input and output files
    string inPath = "someIISlog.log";
    string outpath = "temp.xml";
 
    // Create a SQL query to get the referers, count and uri-to. Order by total hits
    string query = 
        "SELECT cs(Referer) as Referer,cs-uri-stem as To,COUNT(*) as Total from " +
        inPath + " TO " + outpath +
        " WHERE (sc-status=200) AND (Referer LIKE 'http:%') GROUP BY Referer,To ORDER BY Total DESC";
 
    // Invoke the ExcuteBatch method
    object[] inputArgs = {query, ws3LogObject, xmlLogObject};
    comLogQueryType.InvokeMember("ExecuteBatch", BindingFlags.InvokeMethod, 
        null, comLogQueryObject, inputArgs);
}
catch (Exception e)
{
    string errorString = "An exception has occurred: " + e.Message;
    Console.WriteLine(errorString);
}
 
[Via Steve Makofsky ]
 

Memory management best practices in C#.

If you’re interested in learning about memory management best practices in C#,you can download presentation that helps you to understand some aspects of managed memory.

Download Power Point Slides

[Via dougturn's Weblog]


Page 2 of 3123