Cannot enter and debug the source code of the serviced component

I developed a COM + component in C # that inherits from ServicedComponent. Here's what it 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 another test project from which I call this component.

 class Program { static void Main(string[] args) { MyComponent myComp = new MyComponent(); myComp.getHello();//1st Breakpoint } } 

I can't get to the second breakpoint. This worked before I switched to VS 2012. It is strange that after the transition to 2012, it no longer works in VS 2010.

I already tried

  • Attach to process
  • Disabled "Enable only my code" in debug settings

Can someone please give directions from here?

UPDATE 1

From the links provided by Mike, I tried symchk for my DLL in the same folder as the DLL and PDB files. It fails with an error stating that the PDB is not matching or not found. I do not know how to resolve this error.

+7
c # visual-studio-2012 com +
source share
1 answer

Your project may not have a .pdb file.

Check this link to Microsoft for an explanation: https://msdn.microsoft.com/en-us/library/yd4f8bd1(vs.71).aspx

+5
source share

All Articles