Global Data Management Forum

Data Management Global

A hub for collaboration, learning, networking, and cultural exchange, and contributing to positive global engagement

 View Only
  • 1.  IBM.EntityFrameworkCore (6.0.0.200) in .NET 6.0 ClickOnce Deployment Error

    Posted Mon August 15, 2022 11:23 AM
    I developed a new .NET6 Windows Desktop application that is using the IBM.EntityFrameworkCore (6.0.0.200) package from NuGet to connect to the Informix Database. I can compile and run the application and everything works as expected. 

    We need to Deploy this app (Using Visual Studio 2022 ClickOnce Deployment) to a shared location on out internal network. When we run the Publish function within VS2022 it fails every time with the following error...


    The following is what is in the output window...

    This is what is in the TMP File referenced above
    ======================================
    8/13/2022 7:34:57 AM
    System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
    --- End of inner exception stack trace ---
    ---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <---

    Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.

    ===================
    And this is what is in the VS2022 Output window


    The point of failure is the fact that there appears to be multiple MANIFEST files being passed into the Microsoft.Build.Framework.ITaskItem see below

    ==========================
    5>"C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\DB2xml4c_cli64_5_8.dll.2.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.APP64.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.CLI64.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.CLIXML4C64.manifest;C:\Users\micha\.nuget\packages\net.ibm.data.db2\6.0.0.200\buildTransitive\clidriver\bin\IBM.DB2.SEC64.manifest" is an invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem".
    ==========================
    I'm not sure if all the manifest files are needed but i looking to see if anyone else has seen this issue??

    Other than being able to Deploy using ClickOnce this all builds and works great for both DEBUG and RELEASE builds

    Regards
    ---------------------------------
    Michael
    ---------------------------------





    ------------------------------
    Michael Bouhuys
    ------------------------------

    #DataManagementGlobal
    #DataServerDrivers


  • 2.  RE: IBM.EntityFrameworkCore (6.0.0.200) in .NET 6.0 ClickOnce Deployment Error

    Posted Tue May 27, 2025 12:30 PM

    Did this ever get corrected?  I am having to EXACT same issue and I have no idea how to correct it.  My application runs just fine inside of the IDE and can connect and read data from DB2.  However, when I attempt to publish, which is have successfully done before I added this dependency, I get the exact same issue as above.



    ------------------------------
    Jerry Spohn
    ------------------------------



  • 3.  RE: IBM.EntityFrameworkCore (6.0.0.200) in .NET 6.0 ClickOnce Deployment Error

    Posted Mon June 02, 2025 08:46 AM

    Is this the correct place to be posting this question?  Without getting this resolved, we cannot use a ClickOnce solution and we will have to find another way to access DB2.



    ------------------------------
    Jerry Spohn
    ------------------------------



  • 4.  RE: IBM.EntityFrameworkCore (6.0.0.200) in .NET 6.0 ClickOnce Deployment Error

    Posted Mon June 02, 2025 10:09 AM

    I corrected the issue just now.  What I did:

    1. Open the Project Properties
    2. Scroll down to the following section:
    3. Click on the link, "Create or open app...."
    4. This opened the app.manifest file.  Not sure if one existed prior or not.
    5. I closed it.
    6. Run a Clickonce Publish.
    7. Installed the application via the ClickOnce link, and it run just fine with the DB2 logic intact and functional

    Help this information helps someone else in the future!



    ------------------------------
    Jerry Spohn
    ------------------------------