title: C# Visual Studio Service Debugging "The breakpoint will not currently be hit. No Symbols have been loaded for this document"
body: <p>New to Visual Studio and new to C#. Building a C# windows service called Transactional Messaging in Visual Studio 2017, which is dependent on a project called Outbound Messaging. When I start debugging and try adding breakpoints on the Outbound Messaging files, I get </p>
  
  <blockquote>
    <p>"The breakpoint will not currently be hit. No Symbols have been loaded
    for this document"</p>
  </blockquote>
  
  <p>From what I can tell, VS is only unable to load the pdb files for: log4net.dll, Castle.Windsor.dll, and Castle.Core.dll. I don't have this issue with adding breakpoints to files in the Transactional Messaging Service. I haven't been able to identify behavior patterns or a permanent fix, so at this point the error seems random. One minute I think I've found a fix, and when I try using that fix on the same error later in the day I have no luck. I am suspicious of a recent power outage that shut my computer down unexpectedly since it looks like pdb files can be cached, but have been told that would be a long shot. </p>
  
  <p>Steps I follow to debug the service:</p>
  
  <ol>
  <li>Stop Transactional Messaging Service via windows services applet</li>
  <li>Uninstall Transactional Messaging Service via VS command line using <code>installutil /u TransactionalMessaging.exe</code> in the Debug folder</li>
  <li>Clean Transactional Messaging Solution in Visual Studio</li>
  <li>Build Transactional Messaging Solution in Visual Studio (at one point a fix was to right click on each aspect of the solution in the solution explorer and build that individually)</li>
  <li>Install the Transactional Messaging Service via VS command line using <code>installutil TransactionalMessaging.exe</code> in the Debug folder</li>
  <li>Start the Transactional Messaging Service via windows service applet</li>
  <li>In VS, Debug > attach to process > Transactional Messaging</li>
  <li>Try adding breakpoints to files in Outbound Messaging service which gets me the above error.</li>
  </ol>
  
  <p>Steps I've tried to solve this error:</p>
  
  <ol>
  <li>Debug > Windows > Modules to manually load each module's symbols (pdb files for log4net.dll, Castle.Windsor.dll, and Castle.Core.dll cannot be found)
  <a href="https://i.stack.imgur.com/YVSay.png" rel="nofollow noreferrer">picture of modules</a></li>
  <li>Completely delete bin and obj folder between steps 2 and 3 above</li>
  <li>Project > Project properties > Build > Advanced > Debugging Information: full (for both Transactional Messaging and Outbound Messaging)</li>
  </ol>
  
  <p>I'm not sure if this is a lack of understanding of VS, C#, or the code base. Any insight is appreciated, I'm past the googling stage and posting a new question as a last resort.</p>