Debugging injected dll's when using SharePointServiceLocator

Jun 8, 2012 at 8:38 PM

Currently, I'm using that latest codedrop (Developing Applications for SharePoint 2010) for Microsoft.Practices.ServiceLocation.dll.

The problem I'm having is, I can't seem to hit the breakpoint in the service implementation code.

Simple example:-



 I have a class:-

class Service:IService


   void SomeMethod()


   //Set Breakpoint Here... (Never get hit)



I tried copying the pdb into GAC of where my dll is located, doesn't matter what I do, breakpoint doesn't get hit (but i do see the symbol is loaded for my w3wp.exe process).

Any suggestions as to how to set this up ?



Aug 12, 2012 at 10:43 PM


just to be sure you do see under modules that the dll symbol is loaded when attaching to the w3wp process?

In my experiences pushing a new version of the image sometimes may not allow using the symbols that are under bin/debug area.  What i've done i right-click on the project and select "Clean" option.  Then, a full rebuild of that dll.  See if that helps.