How to Break out of ASP.NET Application_Error and redirect to a different page

A site I developed was getting the error: "A potentially dangerous Request.Path value was detected from the client (&)."

This was due to how Google was indexing the pages on the site. The site is using Friendly URLs (meaning no ?Param= or &Parm=).  Then Google appended the following parameters (and other values) to the end of the URL: &ct=ga&cd=.

Since there was no ?Param= .NET saw the &ct=ga&cd= as a hack.  This lead me down the path of trapping that error in the Global.asax Application_Error handled. When the  "A potentially dangerous Request.Path value was detected from the client (&)." error was thrown I wanted to redirect to the default home page.  

The problem was the redirect did not work and the site kept going back to the custom error message page. I then found by setting Server.ClearError() I could redirect to the home page. 
void Application_Error(object sender, EventArgs e)
{
    //... other code here....

    var Message = ex.Message.ToLower();
    var RootURL = Common.GetAppPathMasterPages() + "default.aspx";
                
    if (Message.Contains("does not exist") || Message.Contains("potentially dangerous request"))
    {
        Server.ClearError();
        CTX.Response.Redirect(RootURL);
        return;
    }    
}    

Find Largest Files in Windows

Recently I noticed my disk space was getting chewed up and had to recall the app I used in the past.  WinDirStats is a great app to find what is chewing up your hard drive space.  In the example below WebRoot virus scanner WRData folder has a lot of junk DBs (I opened a ticket with them) to get the fix.

Screen Shots of WinDirStats.

By Folder

By File Extension

TeamViewer Remote Control

I typically use Chrome Desktop to gain access to my computers. When I help out a friend I will use TeamViewer.

With TeamView you send your friend a link to the Instant Customer app at this link. They run the following app from the web page.  Or have them to go this link: http://download.teamviewer.com/download/TeamViewerQS_en.exe


For you to connect download the full TeamView app at the same link show above. Then connect to your friend's computer by entering the partner id shown above.