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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:39:46+00:00 2026-05-27T04:39:46+00:00

I am writing a program written in C# that interfaces with a Sage Payroll

  • 0

I am writing a program written in C# that interfaces with a Sage Payroll database – essentially an Access database.

This uses a Sage library to connect to the database and returns error codes if any occur. I have the program working correctly on 2 machines. When I run it on the production machine I get the following Sage error:

Error value: 102
Error code: -2147221402
Error text: Database file locked, not valid or corrupt

I am confident that there is not a problem with the database as if I copy this to any other machine and run the program it works correctly.

The exception I get is:

Exception: Message: Invalid STDGMEDIUM structure (Exception from HRESULT: 0x80040066 (DV_E_STGMEDIUM))

I think the error is something COM/Interop related on the production machine. I have Administrator privileges and the Sage dlls have all been registered correctly.

Can anyone shed any light on this error code?

  • 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-27T04:39:46+00:00Added an answer on May 27, 2026 at 4:39 am

    I never got to the bottom of this problem but from speaking to the vendor I think it was something connected to their library, possibly permissions or unsupported on certain OSes.

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

Sidebar

Related Questions

I'm writing a program that calculates the Jacobi algorithm. It's written in Objective-C since
I'm writing a program that uses SetWindowRgn to make transparent holes in a window
I have a program written in VB.NET which stops a service that uses file
I am writing a program that stores data in a dictionary object, but this
I am writing a multithreaded program in java. I have written something like this
I'm writing a program in VB.NET 2010 that will connect to the PICkit(TM) 1
I am writing a Fortran program in which one line is written like this
I'm writing a client for a server program written in C++. As is not
Im writing a program that should read input via stdin, so I have the
I'm writing a program that sends an email out at a client's specific local

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.