title: .NET Windows Service crashes in ntdll.dll
body: <p>I have a Windows Service written in C#. It is crashing when it calls into a 3rd party COM component.  The problem only appears on Windows 7 (x86 and x64). When I run the same service code as a console application on Windows 7 (x86 and x64), it works fine.</p>
  <p>When I run the same service on Windows 2003, it also works properly.  I think it could be related to UAC. I am looking for suggestions/direction on debugging this service to identify what is causing the problem.  Use debug symbols for ntdll.dll?  Below the info from the event log.</p>
  <pre><code>Event ID: 1000, Level: Error
  Faulting application name: ServiceHost.exe, version: 1.0.0.0, time stamp: 0x4f87bc9a
  Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b60
  Exception code: 0xc0000005
  Fault offset: 0x0002bcbb
  Faulting process id: 0x151c
  Faulting application start time: 0x01cd1939c9017b2d
  Faulting application path: E:\ServiceHost\bin\Debug\ServiceHost.exe
  Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
  Report Id: 08da6aa3-852d-11e1-a889-00155d016f32
  </code></pre>