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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:24:30+00:00 2026-05-26T05:24:30+00:00

I was trying to attach to Exchange Server database file using Managed Esent API

  • 0

I was trying to attach to Exchange Server database file using Managed Esent API but I got the next error: “Checksum error on a database page” or JET_errReadVerifyFailure on calling JetAttachDatabase. Can anybody explain what does it mean and how to fix it? This database was attached successfully from C++ application using the same API.

Code:

int pageSize;
Api.JetGetDatabaseFileInfo(fileName, out pageSize, JET_DbInfo.PageSize);

SystemParameters.DatabasePageSize = pageSize;

JET_INSTANCE jetInstance;
string jetInstanceName = Guid.NewGuid().ToString("N");
Api.JetCreateInstance(out jetInstance, jetInstanceName);

try
{
  SetSystemParameters(jetInstance, fileName, jetInstanceName);

  Api.JetInit(ref jetInstance);

  JET_SESID jetSessionId;
  Api.JetBeginSession(jetInstance, out jetSessionId, "admin", "password");

  try
  {
    Api.JetAttachDatabase(jetSessionId, fileName, AttachDatabaseGrbit.ReadOnly);
  }
  finally
  {
    Api.JetEndSession(jetSessionId, EndSessionGrbit.None);
  }
}
finally
{
    Api.JetTerm(jetInstance);
}

In SetSystemParameters method I set only SystemPath and TempPath parameters. May be I need to set any additional parameters to fix my problem? Or the version of my esent.dll is older than needed… Now my esent.dll version which in system32 folder is 5.1.2600.5512.

Thanks.

  • 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-26T05:24:31+00:00Added an answer on May 26, 2026 at 5:24 am

    I’ve come across the same problem. And your guess is right, this is because the version difference. You will get this error if you try to open a Win7/Vista-made database by the WinXP esent engine.

    Unfortunately there is no way to fix it rather then upgrade your Windows. I mean legal way.
    Because if you just replece your esent.dll by the newer one, it will work. But this is not allowed by the Windows license.

    Here is another discussion of the problem:
    ESENT distribution rights

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

Sidebar

Related Questions

I'm trying to attach my database on a server that is running SQL2005 and
I am using SQL Server 2008 developer edition. I was trying to attach the
I am trying to attach a database in sql 2005 but I get an
I am trying to attach a file from from my website using pulling from
I am newbie in Sql Server.I am trying to attach AdventureWorks database with Sql
I'm trying to attach some files to a Jira using the Soap API. I
I'm trying to attach a file to an outgoing email but the attachment size
I'm trying to attach an NSManagedObjectID to a UILocalNotification but keep getting the error:
When im trying to attach database get such error Does Anyone have an idea
I'm trying to attach an external mdf file to my SQLEXPRESS instance from within

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.