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 934561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:01:24+00:00 2026-05-15T21:01:24+00:00

I have tried compiling the service EXE file as AnyCPU, x86, and x64. It

  • 0

I have tried compiling the service EXE file as AnyCPU, x86, and x64. It works on my Windows 7 x64 box. I’m installing with installutil, the .NET 4 version.

When I start the service, I get an error. It says nothing, but it does point to which modules are loaded. Those of potential interest:

LoadedModule[0]=D:\yellowbook\grapevine_service\grapevinesystemservice.exe
LoadedModule3=C:\Windows\system32\KERNEL32.dll
LoadedModule4=C:\Windows\system32\KERNELBASE.dll
LoadedModule[9]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll
LoadedModule[17]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
LoadedModule[18]=C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18caf\MSVCR80.dll
LoadedModule[22]=C:\Windows\assembly\NativeImages_v2.0.50727_64\mscorlib\9a017aa8d51322f18a40f414fa35872d\mscorlib.ni.dll

I can run this service as a console application with a command-line switch, which yields this:

Unhandled Exception:
System.BadImageFormatException: Could
not load file or assembly
‘grapevinesystemservice.exe’ or one of
its dependencies. This assembly is
built by a runtime newer than the
currently loaded runtime and cannot be
loaded. File name:
‘grapevinesystemservice.exe’

I’ve tried to the registry hack to force the use of the latest runtime. No effect. I’ve looked at the installed EXE file in reflect to make sure it didn’t get munged by my buildserver, but it’s targeted at 4.0.30319. My local, build, and test server all have 30319 as the .NET 4 version. None ever had a beta/RC.

They weren’t listed in the load modules, but I am also using log4net (rebuilt in .NET 4 from source code), StructureMap, NoRM (MongoDB), AutoMapper, Newtonsoft.Json, and a number of other DLL files that were built by my team.

  • 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-05-15T21:01:24+00:00Added an answer on May 15, 2026 at 9:01 pm

    Have you tried setting requiredRuntime in the config file for grapevinesystemservice.exe? Like 0xA3 mentioned, it looks like it isn’t set to use 4.0.

    <startup>
      <requiredRuntime version="v4.0.20506" safemode="true"/>
    </startup>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a web service to resize user uploaded images and all works
I have tried several times to install rails. Using RVM, then compiling the source
I have a normal SLN file, and I'm compiling it fine with msbuild from
Have tried to find solutions for this and can't really come up with anything.
I have tried to go through the jungle (really, PayPal, why don't you weed
I have tried searching over the internet about this problem but not able to
I have tried this: #define format(f, ...) \ int size = strlen(f) + (sizeof((int[]){__VA_ARGS__})/sizeof(int))
I have tried many permutations but they all don't seems to work well. Am
I have tried a variety of different solutions found on stack and other places
I have tried everything in the book and EVERYTHING I could find on how

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.