locked
db2 connection issue in aspnet core RRS feed

  • Question

  • Hi i am trying to connect ibm db2 server in vs 2017 in aspnet core application but it is throwing error as 

    Unable to load DLL 'db2app64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

       at IBM.Data.DB2.Core.UnsafeNativeMethods.DB232.SQLFreeConnAttribsADONET(DB2SQLGetConnAttribsADONETParams& pParam)
       at IBM.Data.DB2.Core.ConnSettingsFromXmlConfig.Dispose(Boolean disposing)
       at IBM.Data.DB2.Core.DB2ConnPool.ReplaceConnectionStringParms(DB2Connection connection, String szValue, DB2ConnSettings& pSettings, DB2ConnSettingsInternal& pSettingsInternal, Boolean bAttach, Boolean pushDownStrAppended)
       at IBM.Data.DB2.Core.DB2Connection.set_ConnectionString(String value)
       at DB2.Controllers.CheckController.Index() in D:\Sample Projects\CodeProjects\DB2\DB2\Controllers\CheckController.cs:line 26
       at lambda_method(Closure , Object , Object[] )
       at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__27.MoveNext()

    MY CONNECTION STRING IS :

      var mycon = "Server=10.64.0.30;Database=Gbgeorr;User Id=FORMSCAPE;Password=******";
                DB2Connection db2 = new DB2Connection(mycon);   //error throwing here 
                if (db2.IsOpen == false)
                    db2.Open();

    help me some one

    Monday, September 25, 2017 1:12 PM

Answers

  • I'd ask for help over here.

    https://forums.asp.net/1255.aspx/1?ASP+NET+Core

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Richard MuellerMVP Tuesday, September 26, 2017 2:13 PM
    • Marked as answer by Just Karl Tuesday, October 3, 2017 5:52 PM
    Monday, September 25, 2017 1:20 PM