Getting Process ID for specific Application Pools

The other day I was debugging a web site and thought to myself “how can I know to which Process ID to attach to”? well I came across to the following: C:\windows\system32\inetsrv\appcmd.exe list wp This command will list all the available application pools along with their process Id, now you can go and attach to the…


Installing dll into GAC with PowerShell

You may install a dll into the GAC (global assembly cache) by doing the following: [Reflection.Assembly]::LoadWithPartialName(“System.EnterpriseServices”) | Out-Null [System.EnterpriseServices.Internal.Publish] $publish = new-object System.EnterpriseServices.Internal.Publish$publish.GacInstall(<<FullFilePathToTheDll>>) This has to do very little with native PowerShell but rather with instantiating and using .NET libraries from PowerShell  

1

Debugging Optimized Code in .NET

Sometime back I found myself trying to remotely debug a program thru visual studio, and while trying to access the value of one of the variables I got a message saying “Cannot evaluate expression because the code of the current method is optimized”… turns out that there are compilation flags that instruct the JIT to optimize…


Hello World!

This is my first post… So…. Hello World!, I’m a Software Developer, I’m proudly Born and Raised Mexican and I find myself currently working at Microsoft as a Software Developer.  I studied in Mexico on the Autonomous University of Baja California, I have a degree on computer engineering.  Since I graduated I have been working mostly…