为什么在未打开 QuickBooks 公司文件时通过 QuickBooks Web Connector 同步数据时 Quickbooks 一直崩溃?

Why Quickbooks keeps crashing while syncing data via QuickBooks Web Connector when the QuickBooks Company file is not opened?

我正在 QuickBooks 和我的 MVC 应用程序之间同步数据。我可以在 QuickBooks 中保持公司文件打开的同时同步数据,但是当我关闭 QuickBooks window 时无法同步数据。我遇到以下错误:

我的问题是,我无法保持打开单个公司文件,因为我还必须与多个公司文件同步数据。

这是QWCLog.txt

的日志
    20190228.04:23:59 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : updateWS() for application = 'Atria By FES - Future Energy Solutions Contracts No.1, LLLP - Customer' has STARTED
20190228.04:23:59 UTC   : QBWebConnector.RegistryManager.getUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock = FALSE
20190228.04:23:59 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to True
20190228.04:23:59 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session locked *********************
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection to the following application.
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppName: Atria By FES - Future Energy Solutions Contracts No.1, LLLP - Customer
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppUniqueName (if available): Atria By FES - Future Energy Solutions Contracts No.1, LLLP - Customer
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppURL: https://atriabyfes.com:9096/WebServices/FutureEnergySolutionsContractsNoOneLLLP_Customer.asmx?wsdl
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : *** Calling serverVersion().
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : Received from serverVersion() following parameter:<serverVersionRet="2.0.0.1">
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.3.0.20">
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : Received from clientVersion() following parameter:<clientVersionRet="">
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : This application agrees with the current version of QBWebConnector. Allowing update operation.
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'Atria By FES - Future Energy Solutions Contracts No.1, LLLP - Customer', username = 'Admin'
20190228.04:24:00 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="Admin"><password=<MaskedForSecurity>
20190228.04:24:01 UTC   : QBWebConnector.SOAPWebService.updateWS() : Received from authenticate() following parameters:<authRet[0]="7bc6c7bb-bbb9-461f-9eae-2e45284704d8"><authRet[1]="C:\QB\QuickBooks Company File\Future Energy Solutions Contracts No.1, LLLP.QBW"><authRet[2]=""><authRet[3]="">
20190228.04:24:01 UTC   : QBWebConnector.RegistryManager.setCurrentWebServiceName() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\CurrentWebServiceName has been set to Atria By FES - Future Energy Solutions Contracts No.1, LLLP - Customer
20190228.04:24:01 UTC   : QBWebConnector.RegistryManager.setCurrentWebServiceSessionTicket() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\CurrentWebServiceSessionTicket has been set to 7bc6c7bb-bbb9-461f-9eae-2e45284704d8
20190228.04:24:01 UTC   : QBWebConnector.SOAPWebService.CheckCFNResponse() : User authenticated.
20190228.04:24:01 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Done.
20190228.04:24:01 UTC   : QBWebConnector.SOAPWebService.OpenConnection() : Connecting to QuickBooks...
20190228.04:24:14 UTC   : QBWebConnector.SOAPWebService.handleAllOtherError() : QBWC1013: Error connecting to QuickBooks. Returning error message to application.
Unexpected error. Check the "qbsdklog.txt" file for possible additional information.
20190228.04:24:14 UTC   : QBWebConnector.SOAPWebService.do_connectionError() : *** Calling connectionError() with following parameters:<wcTicket="7bc6c7bb-bbb9-461f-9eae-2e45284704d8"><hresult="0x80040402"><message="Unexpected error. Check the "qbsdklog.txt" file for possible additional information.">
20190228.04:24:14 UTC   : QBWebConnector.SOAPWebService.do_connectionError() : Received from connectionError() following parameters:<tryAgain="">
20190228.04:24:14 UTC   : QBWebConnector.SOAPWebService.OpenConnection() : Connection retry #1
20190228.04:24:14 UTC   : QBWebConnector.SOAPWebService.OpenConnection() : Received another company file from application to try again. Company file name received = <"">
20190228.04:24:14 UTC   : QBWebConnector.SOAPWebService.OpenConnection() : Connecting to QuickBooks...
20190228.04:24:15 UTC   : QBWebConnector.SOAPWebService.handleAllOtherError() : QBWC1013: Error connecting to QuickBooks. Returning error message to application.
Could not start QuickBooks.
20190228.04:24:15 UTC   : QBWebConnector.SOAPWebService.do_connectionError() : *** Calling connectionError() with following parameters:<wcTicket="7bc6c7bb-bbb9-461f-9eae-2e45284704d8"><hresult="0x80040408"><message="Could not start QuickBooks.">
20190228.04:24:15 UTC   : QBWebConnector.SOAPWebService.do_connectionError() : Received from connectionError() following parameters:<tryAgain="DONE">
20190228.04:24:15 UTC   : QBWebConnector.SOAPWebService.OpenConnection() : Error connecting to QuickBooks. Application sent back DONE. Job ending.
20190228.04:24:15 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False
20190228.04:24:15 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked *********************
20190228.04:24:15 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : Update completed with errors. See log (QWClog.txt) for details.

这是来自 qbsdklog.txt

的日志
20190228.042800 I   6956    RequestProcessor    ========= Started Connection =========
20190228.042800 I   6956    RequestProcessor    Request Processor, QBXMLRP2 v13.0
20190228.042800 I   6956    RequestProcessor    Connection opened by app named 'Atria By FES - Future Energy Solutions Contracts No.1, LLLP - Customer'
20190228.042800 I   6956    CertVerifier    The Authenticode signature validated OK.
20190228.042800 I   6956    RequestProcessor    OS: Microsoft Standard Edition (build 9200), 64-bit
20190228.042800 I   6956    RequestProcessor    Current Process Integrity Level : 2000
20190228.042803 I   6956    RequestProcessor    Quickbooks is not running currently
20190228.042803 I   6956    RequestProcessor    Launch a new instance of Quickbooks
20190228.042805 I   6956    RequestProcessor    Getting the IUnknown COM instance of QB
20190228.042805 I   6956    RequestProcessor    Opening the file in the DoNotCare mode.
20190228.042807 E   6956    RequestProcessor    Begin Session error = 800706be

20190228.042808 I   6956    RequestProcessor    ========= Started Connection =========
20190228.042808 I   6956    RequestProcessor    Request Processor, QBXMLRP2 v13.0
20190228.042808 I   6956    RequestProcessor    Connection opened by app named 'Atria By FES - Future Energy Solutions Contracts No.1, LLLP - Customer'
20190228.042808 I   6956    CertVerifier    The Authenticode signature validated OK.
20190228.042808 I   6956    RequestProcessor    OS: Microsoft Standard Edition (build 9200), 64-bit
20190228.042808 I   6956    RequestProcessor    Current Process Integrity Level : 2000
20190228.042808 E   6956    RequestProcessor    QuickBooks is not running and the data file name is not provided. Cannot continue.
20190228.042808 E   6956    RequestProcessor    Could not find or create an instance of QuickBooks using InstanceFinder hr = 80040416
20190228.042829 I   6956    RequestProcessor    "CloseConnection" has not been called.
20190228.042853 I   6956    RequestProcessor    "CloseConnection" has not been called.

请帮忙!

仅供参考:它早些时候工作,但突然停止工作。

在日志中显示 "Could not find or create an instance of QuickBooks".

如果您收到 "Could not start QuickBooks" 错误消息,请查看以下内容。

  • 确保您的应用仅针对 Target x86 构建。
  • 确保在常规中取消选中保留 QuickBooks 运行ning 首选项。
  • 确保 QuickBooks 和您的应用程序 运行 同时 用户级别。
  • 他们都需要 运行ning 作为普通用户,或者都 运行ning 作为普通用户 管理员,但不是混血儿。
  • 如果您 运行正在 Visual Studio 中尝试调试,那么您 可能 运行 在混合权限模式下。 VS 运行s 作为 管理员,因此您需要使用 运行 As 启动 QuickBooks 管理员选项。
  • 确保路径和文件名正确。
  • QuickBooks 和 QBXML SDK 应用程序并非旨在 运行 作为 服务。他们必须 运行 在用户的上下文中。

参考:

https://help.developer.intuit.com/s/article/Troubleshooting-Could-not-start-QuickBooks

Could not find or create an instance of QuickBooks using InstanceFinder