Quickbooks Web连接器错误 - 长度不能小于零

时间:2017-04-03 13:59:17

标签: xml quickbooks

尝试将Quickbooks Web Connector从一台计算机连接到另一台计算机

<?xml version="1.0"?>
<QBWCXML>
    <AppName>QuickBooks WC Test</AppName>
    <AppID />
    <AppURL>https://localhost3.dd</AppURL>
    <AppDescription>Test</AppDescription>
    <AppSupport>https://localhost3.dd</AppSupport>
    <UserName>Admin</UserName>
    <OwnerID>{90A44FB7-33D9-4815-AC85-AC86A7E7D1EB}</OwnerID>
    <FileID>{57F3B9B6-86F1-4FCC-B1FF-967DE1813D20}</FileID>
    <QBType>QBFS</QBType>
    <IsReadOnly>false</IsReadOnly>
</QBWCXML>

我的主持人设置为:

<IP of other comp>  localhost3
<IP of other comp>  localhost3.dd

另一台计算机上的URL为https://localhost3.dd,位于端口8443

但是我收到了错误:

Length cannot be less than zero.
Parameter name: length

The new application was not added.

这似乎是一个通用的C#错误。

Cannot access a disposed object.
Object name: 'QBWCOpenDialog'.

QBWC1051: The new application was not added

这会导致什么?是否存在连接问题或我用于连接的XML?

使用所需信息进行编辑:

Web连接器版本为2.1.0.30,Quickbooks版本为Premier Professional Services Edition 2015.这是我正在使用的实际QWC文件。

这是日志文件:

20120201.23:43:22 UTC   : QBWebConnector.CompanyFileLock.getLock() : Got Lock = LOCKED:DAN-PC:634637365991413480
20120201.23:43:22 UTC   : QBWebConnector.CompanyFileLock.Send_DataExtModRqXML() : XML dump follows: -

<?xml version="1.0"?><?qbxml version="11.0"?><QBXML><QBXMLMsgsRq onError="stopOnError"><DataExtModRq requestID="1"><DataExtMod><OwnerID>{57F3B9B1-86F1-4fcc-B1EE-566DE1813D20}</OwnerID><DataExtName>AppLock</DataExtName><OtherDataExtType>Company</OtherDataExtType><DataExtValue>UNLOCKED:DAN-PC</DataExtValue></DataExtMod></DataExtModRq></QBXMLMsgsRq></QBXML>

20120201.23:43:22 UTC   : QBWebConnector.CompanyFileLock.Send_DataExtModRqXML() : XML dump follows: -

<?xml version="1.0" ?>
<QBXML>
<QBXMLMsgsRs>
<DataExtModRs requestID="1" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
<DataExtRet>
<OwnerID>{57F3B9B1-86F1-4FCC-B1EE-566DE1813D20}</OwnerID>
<DataExtName>AppLock</DataExtName>
<DataExtType>STR255TYPE</DataExtType>
<DataExtValue>UNLOCKED:DAN-PC</DataExtValue>
</DataExtRet>
</DataExtModRs>
</QBXMLMsgsRs>
</QBXML>


20120201.23:43:22 UTC   : QBWebConnector.CompanyFileLock.unsetLock() : Company file has been unlocked for ownerID = <{57F3B9B1-86F1-4fcc-B1EE-566DE1813D20}>
20120201.23:43:22 UTC   : QBWebConnector.SOAPWebService.update() : Company file has been unlocked.
20120201.23:43:22 UTC   : QBWebConnector.SOAPWebService.update() : Ending session to QuickBooks.
20120201.23:43:22 UTC   : QBWebConnector.SOAPWebService.DisconnectFromQB() : Session ended and connection closed
20120201.23:43:22 UTC   : QBWebConnector.SOAPWebService.do_closeConnection() : *** Calling closeConnection() with following parameter:<wcTicket="2J3uBVZzBTEKl9x4izkjntfXvK1Fs6j8fdjX-wOluV0">
20120201.23:43:23 UTC   : QBWebConnector.SOAPWebService.do_closeConnection() : Received from closeConnection() following parameter:<ccResponse="OK">
20120201.23:43:23 UTC   : QBWebConnector.SOAPWebService.do_closeConnection() : CloseConnection called to application.
20120201.23:43:23 UTC   : QBWebConnector.SOAPWebService.do_closeConnection() : Response received from application = OK
20120201.23:43:23 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False
20120201.23:43:23 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked *********************
20120201.23:43:23 UTC   : QBWebConnector.SOAPWebService.update() : update completed.
20120201.23:43:23 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : Update for application = 'Motawi Quickbooks' has COMPLETED
20120201.23:43:23 UTC   : QBWebConnector.WebServiceManager.DoUpdateSelected() : Update session has ended.
20120712.14:51:56 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USER\Software\Intuit\QBWebConnector\UpdateLock has been set to False
20120712.14:51:56 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session unlocked *********************
20120712.14:51:56 UTC   : StopFlexConnector : Object reference not set to an instance of an object.
20120712.14:51:56 UTC   : StopFlexConnector :    at QBWebConnector.QBWebConnector.StopFlexConnector()

1 个答案:

答案 0 :(得分:1)

得到相同的错误,并在<AppUrl>网址值

的末尾添加尾部斜杠时开始工作