为appName =<>

时间:2017-05-01 20:57:47

标签: c# xml quickbooks

尝试使用QB Web Connector 2.2连接到Quickbooks实例。

这是2015年Premier专业服务版。

这是我的日志:

20170501.19:27:08 UTC   : QWCReader.ParseQWC() : Contents of QWC file: -
<QBWCXML>
  <AppName>QBDrupal</AppName>
  <AppID />
  <AppURL>https://localhost3.dd:8443/qb-soap/</AppURL>
  <AppDescription>Test for Drupal</AppDescription>
  <AppSupport>https://localhost3.dd:8443/qb-soap/</AppSupport>
  <UserName>Admin</UserName>
  <OwnerID>{90A44FB7-33D9-4815-AC85-AC86A7E7D1EB}</OwnerID>
  <FileID>{57F3B9B6-86F1-4FCC-B1FF-967DE1813D20}</FileID>
  <QBType>QBFS</QBType>
  <Style>Document</Style>
  <AuthFlags>0xF</AuthFlags>
</QBWCXML>
20170501.19:27:08 UTC   : QBWebConnector.WebServiceManager.ReadQWC(QWCReader QWC) : Parsing application configuration xml file to load its content to variables
20170501.19:27:10 UTC   : QBWebConnector.RegistryManager.createRegKey() : Error creating registry key for appName = <>
20170501.19:27:10 UTC   : QBWebConnector.RegistryManager.createRegKey() : Reason: Value cannot be null.
Parameter name: name
20170501.19:27:10 UTC   : QBWebConnector.SOAPWebService.SerializeToRegistry() : Error saving QBDrupal to Registry: Object reference not set to an instance of an object.
20170501.19:27:10 UTC   : QBWebConnector.SOAPWebService.ConnectToQB() : Connecting to QuickBooks...
20170501.19:28:24 UTC   : QBWebConnector.SOAPWebService.ConnectToQB() : Error connecting to QuickBooks. Error message received from QuickBooks was <Could not start QuickBooks.>.
20170501.19:28:24 UTC   : QBWebConnector.SOAPWebService.AddToQuickBooks() : QBWC1039: There was a problem adding the application. Check QWCLog.txt for details.
<Error connecting to QuickBooks. Error message received from QuickBooks was <Could not start QuickBooks.>.>
   at QBWebConnector.WebService.AddToQuickBooks()
20170501.19:28:26 UTC   : QBWebConnector.SOAPWebService.DisconnectFromQB() : QBWC1015: Error closing connection to QuickBooks.
Reason: Value cannot be null.
Parameter name: g

我收到如下警告信息:

(这个是在加载QWC文件后立即开始的)

QuickBooks already has a company file open (**NOTE: IT DOESN'T**). If you want to open another company file, close this one first.

Only QuickBooks Accountant and QuickBooks Enterprise Solutions can open two company files at once.

这一次发生在一分钟左右后:

QBWC1039: There was a problem adding the application. Check QWCLog.txt for details.

Error connecting to Quickbooks. Error message received from QuickBooks was <Could not start QuickBooks.>.

If you do not have QuickBooks installed on this system, you would need to install it before running web connector

不太清楚为什么会出错。任何启示?

1 个答案:

答案 0 :(得分:0)

刚遇到此问题:在打开qwc文件之前,应确保QuickBooks正在运行。一旦我这样做(使用网络连接2.2.0.71和2017年的QuickBooks Premier),我就能成功地超越它。