Showing posts with label DebuggingTechniques. Show all posts
Showing posts with label DebuggingTechniques. Show all posts

How to add new items in the "Send To" menu of Windows Context Menu (desktop - right click)

How to add new items in the "Send To" menu of Windows Context Menu (desktop - right click)
1) Create a shortcut for the application or folder.
2)  Go to the following path below.
For Windows 7 / Windows Server 2K8:
- C:\Users\[Administrator]\AppData\Roaming\Microsoft\Windows\SendTo
For Windows XP / Windows Server 2K3:
- ????

3)  Copy the created shortcut in the above location.
4) Verify that the created shortcut appear under the "Send To" menu of Windows Context Menu (desktop - right click).

Debug .Net Assemblies deployed in GAC in a Deployment Machine

How to debug a .Net assembly deployed in GAC in a deployment machine:
1) Go to Start Menu > Run
2) Type the following based on the deployment location:

C:\Windows\assembly\GAC_MSIL
C:\Windows\assembly\GAC_32
C:\Windows\assembly\GAC

3) Find the directory of the assembly
4) Open/Navigate until you locate the .dll file.
5) Create a backup of the file on the same location.
6) Copy the latest .pdb and .dll files of the project in the same location.
7) Attach your project to a process that run/call your assembly/API.
    - For ASP.Net project, attach your project to w3wp.exe process.
8) You can now start debugging.