COM error in fileRSS

1 reply

Last post Mar 26, 2018 01:53 AM by Yuk Ding

  • COM error in file

    Mar 23, 2018 09:24 AM|RolBol|LINK

    Really appreciate any help!!

    This is what I get when I try to run a program:

    Caught COM error in file C:\BOSS\Comon\BusinessServices\CashControl\AdoDataAccess.cpp at line 615:

    Code=80040e14

    Code meaning=IDispatch error #3092

    Source=Microsoft OLE DB Provider for ODBC Drivers

    Description=[Microsoft][ODBC SQL Server Driver][SQL Server]Database "msdb" cannot be opened because some of the files could not be actvided.

    Windows 2000 profesional server 

    THANKS !!!

  • Re: COM error in file

    Mar 26, 2018 01:53 AM|Yuk Ding|LINK

    Hi RolBol,

    First of all, you need to check whether the code is written correctly. Secondly the error code 80040e14 and IDispatch error #3092 always occur when you have a syntax error in your sql query string. So you need to ensure it also have enough permission to achieve this.

    Thirdly, you need to ensure both authenticated user and Application pool identity have enough permission to access the cpp. Besides, you need to ensure app pool identity have enough permission to access the sql database.

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.