Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. XAMARIN Android Access to DB2

XAMARIN Android Access to DB2

Scheduled Pinned Locked Moved Android
visual-studiocsharpasp-netandroidmobile
1 Posts 1 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11766758
    wrote on last edited by
    #1

    Hello *All, in Visual Studio 2022 XAMARIN for Android i need Access to iSeries-DB2 V7.1 for select and update. I try it with NuGet-Package IBM-Data.DB2.Core (3.1.0.500).

                string sqlconn = "Datasource=AS400; default collection=LIBR; Pooling=false";
                iDB2Connection sqlConnection = new iDB2Connection(sqlconn); 
    

    At runtime i get the error: System.TypeInitializationException: 'The type initializer for 'Microsoft.Win32.Registry' threw an exception.' Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand Warnung Konflikt zwischen der Prozessorarchitektur des Projekts "MSIL", das erstellt wird, und der Prozessorarchitektur des Verweises, "C:\Users\user\.nuget\packages\ibm.data.db2.core\3.1.0.500\lib\netstandard2.1\IBM.Data.DB2.Core.dll", "AMD64". Dieser Konflikt kann zu Laufzeitfehlern führen. Ändern Sie ggf. mithilfe des Konfigurations-Managers die als Ziel angegebene Prozessorarchitektur Ihres Projekts so, dass die Prozessorarchitekturen zwischen Ihrem Projekt und den Verweisen ausgerichtet werden, oder wählen Sie eine Abhängigkeit von Verweisen mit einer Prozessorarchitektur, die der als Ziel angegebene Prozessorarchitektur Ihres Projekts entspricht. XMARIN.Android best Regards

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups