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

  • Home
  • SEARCH
  • 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 7487887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:40:57+00:00 2026-05-29T14:40:57+00:00

I am running Windows 7 Ultimate 64 bit. I have a windows service (written

  • 0

I am running Windows 7 Ultimate 64 bit.

I have a windows service (written in C#) that calls into a dll released by an major telecoms service provider here in South Africa (TELKOM). The dll is called MPIEst.dll, and I believe it was written in C++. The guy at the link (http://social.msdn.microsoft.com/Forums/en-US/windowscompatibility/thread/a7e5aafc-bb52-42c3-a3b7-19cb4cfbf6d5/) sort of had the same problem I had.

After doing some research I found out that DEP (Data Execution Prevention) was to blame for the error “Unable to load DLL ‘MPIest.dll’: Invalid access to memory location. (Exception from HRESULT: 0x800703E6)”. So I thought “ok that’s easy…let’s turn off DEP for the whole computer and see what happens”. So I do this and the result becomes even weirder…The windows service runs successfully like nothing happens, but all calls into the DLL don’t do anything at all.

I know this because when I wrote a normal C# console app that uses the DLL, the DLL methods returned values and worked properly, but when run from within the windows service, the DLL methods return a non-zero result, which indicates that something went wrong. The thing is there is no documentation that says what the return codes mean.

Anyway the bottom line is that somehow turning off DEP for the whole system doesn’t affect a windows service.
Has anyone encountered this before? The windows service and the console app call exactly the same code and do exactly the same thing, but the console app works properly, whilst the windows services silently doesn’t do anything but DEP is turned off for the whole system.

Thanks in advance.

  • 1 1 Answer
  • 1 View
  • 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-29T14:40:58+00:00Added an answer on May 29, 2026 at 2:40 pm

    Found the solution. The solution is actually two-fold.
    First there is DEP, which you need to turn off for the whole computer, and then restart the computer (this is because one cannot turn off DEP for a windows service via control panel).

    Then secondly, I used the “ProcessMonitor” application to see what the windows service and the “MPIEst.dll” were doing with the windows OS behind the scenes. It turns out that the DLL was searching for a file it depended on (client.mpi) in the system directory folder, even though the file was in the same directory as the windows service executable.
    So I added code to copy the necessary files to the system directory and everything worked.

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

Sidebar

Related Questions

I'm running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently
My machine is Windows 7 ultimate (64 bit). I have installed MSMQ and checked
I have a site which is running in ASP.NET 4.0, on Windows 7 Ultimate.
I have reformatted my machine and am running Window 7 Ultimate (64-bit). I anticipate
I'm running windows 7 ultimate (32bit) and have a very anoying problem with my
I am running Windows 7 64-bit Ultimate under VirtualBox (latest version, 4.1.4) on my
I have Visual Studio 2010 Ultimate on Windows 7 Enterprise running on a x86
I am trying to get a post-commit.bat script running on a Windows Vista Ultimate
I'm running Windows XP SP3 and I do have the latest .NET libraries installed,
I am running Windows XP 64 bit. I want to hide the taskbar when

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.