none
How to embed dll in my application's executable? RRS feed

  • Question

  • I am developing a Windows Forms application in C #, in Visual Studio 2019 Community.

    I am using the SQL Server CE database, it is working properly in my application, however when I install my application on another computer, the application generates the following error:
    "System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SqlServerCe,"

    I'm using innosetpu to make the installer of my application, as little as I understand, I believe that I should take the dlls that I used from SQL Server CE together with the executable of my application, however every time I try to simply take it, the error I end up with delete the dll ...
    Sunday, April 19, 2020 2:29 PM

Answers

  • have a look at one of my many blog posts about private deployment, like this on for example: http://erikej.blogspot.com/2013/10/sql-server-compact-4-desktop-app-with.html

    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

    Sunday, April 19, 2020 3:22 PM
    Moderator

All replies

  • have a look at one of my many blog posts about private deployment, like this on for example: http://erikej.blogspot.com/2013/10/sql-server-compact-4-desktop-app-with.html

    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

    Sunday, April 19, 2020 3:22 PM
    Moderator
  • I have different files than what was shown in the example, and how could I add them?

    sqlceca40.dll

    sqlcecompact40.dll

    sqlceer40BR.dll

    sqlceer40EN.dll

    sqlceme40.dll

    sqlceqp40.dll

    sqlcese40.dll

    Sunday, April 19, 2020 3:52 PM
  • How are they different? Just add them the same way.

    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

    Sunday, April 19, 2020 3:54 PM
    Moderator
  • The name and number of files were different ... But how could I add them? I tried to add in references, but it was not possible. I'm working with Windows forms tb (in the example it was (Windows console) but I believe the idea is the same.
    Sunday, April 19, 2020 4:10 PM
  • Did you read the blog post??

    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

    Sunday, April 19, 2020 6:31 PM
    Moderator