c# - Can't step Into and debug the serviced component source code -


i have developed com+ component in c# inheriting servicedcomponent. here how looks like:

    [transaction(transactionoption.required)]     [classinterface(classinterfacetype.autodual)]     [eventtrackingenabledattribute(true)]     [justintimeactivation]     [objectpooling(enabled = true, minpoolsize = 10, maxpoolsize = 30, creationtimeout = 15000)]     [synchronization]      class mycomponent: system.enterpriseservices.servicedcomponent     {         [autocomplete(true)]         public string gethello()         {//2nd breakpoint             contextutil.setcomplete();             return "helloworld";         }     } 

i have test project call component.

class program { static void main(string[] args) { mycomponent mycomp = new mycomponent(); mycomp.gethello();//1st breakpoint } } 

i not able reach 2nd breakpoint. working before switched vs 2012. strange thing after switching 2012 no longer working in vs 2010 too.

i've tried,

  • attach process
  • unchecked "enable code" in debug settings

can please give direction here?

update 1

from links given mike, tried symchk dll in same folder dll , pdb files there. fails error saying pdb mismatched or not found. don't know how resolve error.

you may missing .pdb file in project.

check microsoft link out explanation: https://msdn.microsoft.com/en-us/library/yd4f8bd1(vs.71).aspx


Comments