Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8790177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:35:04+00:00 2026-06-13T22:35:04+00:00

I have a Windows service written in C#/.NET, compiled to AnyCPU, that dies on

  • 0

I have a Windows service written in C#/.NET, compiled to AnyCPU, that dies on startup apparently while trying to initialize StructureMap. I’ve used Debug Diagnostics v1.2 to get the following stacktrace out of the memory dump:

System.RuntimeTypeHandle.CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef) 
System.RuntimeType.CreateInstanceSlow(Boolean, Boolean, Boolean)Unable to load image C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\b10e2a4a87b27f241113ead9433e25da\mscorlib.ni.dll, Win32 error 0n2 
System.RuntimeType.CreateInstanceDefaultCtor(Boolean, Boolean, Boolean, Boolean) 
System.Activator.CreateInstance[[System.__Canon, mscorlib]]() 
StructureMap.ConfigurationExpression.AddRegistry[[System.__Canon, mscorlib]]()*** ERROR: Module load completed but symbols could not be loaded for StructureMap.dll 
StructureMap.ObjectFactory.Initialize(System.Action`1) 

The second line is actually the one of interest to me. That file is present on my machine. Where should I look next for how to debug this service and get it running?

For what it’s worth, I’ve got a unit test that validates that the StructureMap configuration is correct, and it successfully passes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:35:06+00:00Added an answer on June 13, 2026 at 10:35 pm

    Win32 error 0x2 is “file not found”. Use Fuslogvw.exe to collect fusion errors. From fusion logs youd should be able to figure out which assembly is not found and where the loader searched for it before it gave up. Remember that windows service always starts in System32 directory…

    (copied Seva Titov’s comment)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have written a custom windows service (VB.NET, .NET Framework 2.0) that takes a
I have a windows service executable that I know is written in .NET which
We have an windows service written in .net, that is hosting WCF service. My
Overview. I have a Windows Service written in C# .NET 4.0 that is hooking
i have a windows service written in .net 4 which doing jobs periodically using
I have a Windows Service written in C# that handles all of our external
Scenario I have a windows service written in C# that performs some processing based
I have a windows service that loads multiple handlers written by different developers. The
I have written a Windows service that I am needing to port over to
I have written a custom Windows Service that writes data to a custom Event

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.