locked
.Net 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();

    

    • Moved by Sabah ShariqMVP Monday, September 25, 2017 12:51 PM Moved From Visual C#
    Monday, September 25, 2017 12:27 PM

All replies

  • Hi JANAPATI APPARAO,

    This is Visual C# forum. As your issue is related to Web please ask your question into ASP.Net forum for getting quick response. I am moving your thread to off topic.

    https://forums.asp.net/

    Your understanding and cooperation will be grateful.

    Thanks,
    Sabah Shariq

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    Monday, September 25, 2017 12:51 PM