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

  • Dotaz

  • 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 ...
    neděle 19. dubna 2020 14:29

Odpovědi

  • 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

    neděle 19. dubna 2020 15:22
    Moderátor

Všechny reakce

  • 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

    neděle 19. dubna 2020 15:22
    Moderátor
  • 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

    neděle 19. dubna 2020 15:52
  • 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

    neděle 19. dubna 2020 15:54
    Moderátor
  • 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.
    neděle 19. dubna 2020 16:10
  • Did you read the blog post??

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

    neděle 19. dubna 2020 18:31
    Moderátor