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.



No comments:

Post a Comment