How to fix the error when running a deployed word vsto addin: unable to load dll 'sqlite.interop.dll'

Eric Liu 0 Reputation points
2023-03-19T09:22:09.1666667+00:00

The error only occurs after deployment: unable to load dll 'sqlite.interop.dll'

VERSION INFO:

  <package id="EntityFramework" version="6.4.4" targetFramework="net472" />

  <package id="System.Data.SQLite" version="1.0.117.0" targetFramework="net472" />
  <package id="System.Data.SQLite.Core" version="1.0.117.0" targetFramework="net472" />
  <package id="System.Data.SQLite.EF6" version="1.0.117.0" targetFramework="net472" />
  <package id="System.Data.SQLite.Linq" version="1.0.117.0" targetFramework="net472" />

VS: 2022

My project has added sqlite package, and the release folder has the above dll:

User's image

User's image

Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft 365 and Office Word For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,796 Reputation points
    2023-03-20T09:25:01.6033333+00:00

    Hi @Eric liu

    As your issue is related to VSTO add-in instead of Word app, to help you better, it's recommended to post a new thread on other forums of following link.

    https://developer.microsoft.com/en-us/word#wordcommunity

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

    Personally I suggest you install C/C++ VS runtime to have a check.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.