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

The Archive Base Latest Questions

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

I am currently creating a Windows service. I’ve got everything finished and can deploy

  • 0

I am currently creating a Windows service. I’ve got everything finished and can deploy it to me test server. But when I try to start the service I get Error 1: Incorrect function. The weird thing is that it’s happening on a method call. The relevant code sections look like this:

public CacheManager(Logger logger, QueueSettings settings)
{
    _logger = logger;

    _logger.WriteLog("checkpoint #1.1");
    FillCache();
    _logger.WriteLog("checkpoint #1.2");
}

    private void FillCache()
    {
        _logger.WriteLog("checkpoint #1.1.1");
        Utils.RefreshSession(ref _session, _user, _password, _appServer);
        _logger.WriteLog("checkpoint #1.1.2");
        Parts = new PartCache(ref _session);
        _logger.WriteLog("checkpoint #1.1.3");
        Customers = new CustomerCache(ref _session);
        _logger.WriteLog("checkpoint #1.1.4");

        lastUpdate = DateTime.Now;
        _logger.WriteLog("checkpoint #1.1.5");
    }

According to the logs, I am reaching checkpoint #1.1 but not checkpoint #1.1.1. The error that is coming back is:

Could not start the JediProcessDocuments service on the local computer.

Error1: Incorrect function.

Any ideas?

  • 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-24T09:15:29+00:00Added an answer on May 24, 2026 at 9:15 am

    So it turns out that the DLL containing the Session object (the variable _session in the code sample wasn’t deployed). I guess that windows services defer loading DLLs until the actual method that needs the DLL is called and doesn’t detect the non-presence until then.

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

Sidebar

Related Questions

I currently use visual studio 2008 for creating projects that can run on windows.
I'm currently in the process of creating a Windows service application which will monitor
I'm currently planning out a project involving creating a shell replacement for Windows (based
I'm creating an installer for my Windows client application. Currently I create an MSI
I have created a windows service which is currently having three timers. First timer
I am creating a Windows Service in C# that processes messages from a queue.
I have a Windows 2008 R2 Server running IIS 7.5. Currently, I use WCF
I'm creating a Wix installer for a windows service which needs to have provided,
I am creating a Windows service using Apache's procrun, and I'm having difficulty getting
I am creating a Windows Service which I want to use NLog with. I

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.