May 2009 - Posts

Fiddler 2 to monitor localhost ie7
Wednesday, May 27, 2009 6:46 AM

IE7 and .net framework are programmed never to request data localhost

Just change the wording Localhost to your machine Name.

this is a better explanation http://www.fiddler2.com/fiddler/help/hookup.asp#Q-LocalTraffic

by amir.magdy | with no comments
Filed under: ,
Change Web Service test page [wsdlHelpGenerator]
Tuesday, May 26, 2009 4:24 AM

the default web service page is a page that reveals a lot of the internal information of the application, this is something that you want to hide.

Warning this does not really secure your web service. may be you should read something like this

<configuration>
   <system.web>
      <webServices>
         <wsdlHelpGenerator href="yourEmptyPage.aspx"/>
      </webServices>
   </system.web>
</configuration>

 

just make sure you add a page to your site’s root folder and name it yourEmptyPage.aspx this way whenever someone navigates to your web services URL that page is going to render

by amir.magdy | with no comments
Filed under: , ,
Windows Debugging tools Quick tutorial [WinDbg]
Sunday, May 17, 2009 11:42 PM

last week end we have faced memory leaks, we had no idea what was the cause of the problem. we were directed by microsoft to use the debugging tools.

this is a quickest possible startup tutorial for that tool.

[Warning] using this tool affects the performance of your applications dramatically please make sure you don’t run it on a production server unless there’s no other way.

    1. download link
      you are looking for “Install Debugging Tools for Windows xx-bit Version”
      you’ll be redirected to the download page u’ll need to look for the “current version”
    2. install the tool
      this is probably the only straight forward step in this tutorial
    3. Copy SOS.dll *
      u need to copy this dll from your framework folder
      usually %windir%\Microsoft.NET\Framework\v2.0.50727
      to your windbg folder
      usually %ProgramFiles%\Debugging Tools for Windows (x86)
    4. Open the WindDbgTool
      image
    5. Symbol data
      to view internals of assemblies you need symbol data the easiest way is to have it downloaded automatically. you can do that by
      image
      and typing in

      srv*c:\symbols\public*http://msdl.microsoft.com/download/symbols
       
      image

      just make sure you have internet connection so this can be downloaded.
    6. Get a Memory Dump of your application
      well this is another 3 step tutorial
      .
    7. Open the Dump
      ”File”->”Open Crash dump” (if prompted you don’t have to save.)
      select the file and wait for the application to be ready
      image 

      this is actually an option i like as attaching to the process causes the application to be extremely slow and you can always ask your client to create a dump and FTP it to you
    8. you need to load “SOS”
      in the previous window the text box in the bottom is where you’ll type in commands.
      the first you need is to load SOS

      so type in
      .load SOS
      AND NOTHING HAPPENS, yes there’s no confirmation that the thing was loaded.

    9. your first Command
      now there’s a whole bunch of commands that can be executed from the SOS you can list all these commands by typing in
      !sos.help
    10. need help
      and now you can explore the memory dump of your application on your own just consider the hints in the next box.

      //!SOS.help <methodName>
      
      !SOS.help DumpDomain
      
      !SOS.DumpDomain



This is just a quick help to get you started. if you need to understand what’s behind this please refer http://blogs.msdn.com/tess/  thank you Tess for the time

by amir.magdy | 1 comment(s)
Filed under: , ,
Fastest way for Creating a memory Dump of your application [DebugDiag]
Sunday, May 17, 2009 11:37 PM
  1. First you need to download the tool here is the link
  2. now just install the tool and run it
  3. then ignore the wizard and go to the third tab in the application UI
    image

right click your process and select create a full dump, the dump is going to be created

now if you need to configure where these dumps are created go to tools –> options and configure the dumps folder.

by amir.magdy | 2 comment(s)
Filed under: , ,