Mod shows "Failed" in Addon Manager, but it works... what is wrong?

I have two addons that are installed and working; but, the Addon Manager says they have Failed connecting.  Also, the Addons take ~15 seconds to connect, which seems a bit long to me.  I am including all my connection code.
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.VariantType
Imports Microsoft.VisualBasic.Constants
Imports Microsoft.VisualBasic.Interaction
Imports System.Diagnostics
Imports System.Collections
Imports System.Windows
Imports System.Windows.Forms.Application
Imports SAPbouiCOM.BoTextStyle
Imports SAPbouiCOM.BoFormMode
Imports SAPbouiCOM.BoEventTypes
Imports SAPbobsCOM.BoObjectTypes
Imports SAPbouiCOM.BoFormItemTypes
Imports SAPbouiCOM.BoDataType
Friend Class ABYMods
    Private WithEvents oApplication As SAPbouiCOM.Application
    Private WithEvents oCompany As SAPbobsCOM.Company
#Region "Setup"
    Public Sub New()
        MyBase.New()
        SetApplication()
        If Not SetConnectionContext() = 0 Then
            MsgBox("Failed setting a connection to DI API.")
            'End  ' Terminating the Add-On Application
            Exit Sub  ' Terminating the Add-On Application
        End If
        If ConnectToCompany() = False Then
            MsgBox("Failed connecting to company's database.")
            'End  ' Terminating the Add-On Application
            Exit Sub  ' Terminating the Add-On Application
        End If
    End Sub
    Public Shared Sub Main()
        Dim oABYMods As ABYMods
        oABYMods = New ABYMods
        Application.Run()
    End Sub
    Private Sub SetApplication()
        Dim SboGuiApi As SAPbouiCOM.SboGuiApi
        Dim sConnectionString As String
        Try
            SboGuiApi = New SAPbouiCOM.SboGuiApi
            sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
            'sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"
            '// GetAddOnIdentifier() is a function to return a string with the
            '// appropriate identifier for the Addon.
            '// This will be required after 2005!  (We currently return a blank string.)
            SboGuiApi.AddonIdentifier = GetAddOnIdentifier()
            '// connect to a running SBO Application
            SboGuiApi.Connect(sConnectionString)
            '// get an initialized application object
            oApplication = SboGuiApi.GetApplication()
            'SetFilters()
        Catch
            MessageBox.Show("No SAP Business One Application was found.")
        End Try
    End Sub
    Private Function GetAddOnIdentifier() As String
        ' We will need to set this up before 2006 for our Addons to be recognized by the License Manager
        GetAddOnIdentifier = ""
    End Function
    Private Function SetConnectionContext() As Integer
        Dim sCookie As String
        Dim sConnectionContext As String
        Try
            ' Initialize the company object
            oCompany = New SAPbobsCOM.Company
            ' Acquire the connection context cookie from the DI API
            sCookie = oCompany.GetContextCookie
            ' Retrieve the connection context string from the UI API using the acquired cookie
            sConnectionContext = oApplication.Company.GetConnectionContext(sCookie)
            If oCompany.Connected Then
                oCompany.Disconnect()
            End If
            ' Set the connection context information to the DI API
            SetConnectionContext = oCompany.SetSboLoginContext(sConnectionContext)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Function
    Private Function ConnectToCompany() As Boolean
        Dim counter As Integer
        counter = 0
        Try
            Do While oCompany.Connected = False
                If oCompany.Connect <> 0 Then
                    counter = counter + 1
                    If counter > 10 Then
                        ConnectToCompany = False
                        Exit Do
                    End If
                    ' When using multiple AddOns, problems with each trying to connect at the same time have been found.
                    ' So, we try multiple times and wait 50ms more between each iteration.
                    Call System.Threading.Thread.Sleep(counter * 50)
                Else
                    ConnectToCompany = True
                End If
            Loop
        Catch ex As Exception
            MsgBox("oCompany.Connect failed in ConnectToCompany()")
        End Try
    End Function
#End Region

Hi Scott
The code is correct
The Addons take ~15 seconds to connect because your system has a little memory. Remember all addon take ~74MB
In Addon Manager go in timeout, but after timeout your addon run
Solution: if possible 1) use only 1 addon. 2)Run addon manually and not automatically only when necessary 3) don't run on PC other programs 4) add memory on your PC
5 finally) We hope in <b>2005 addons use little memory</b>.
Andrea Moschetto

Similar Messages

  • FF shows on the task bar shows running on task manager but I can not maximize it

    FF shows on the task bar shows running on task manager but I can not maximize it.

    Can you try starting Firefox in Safe Mode. To do that, hold down SHIFT while you click the desktop shortcut or quick launch icon. Then click the '''Continue without making changes''' button.
    If it works in that configuration, then one of your add-ons is the culprit.

  • Western digital 3tb 2nd hard drive shows up in device manager but not in disk manger.

    Internal wd 30eurs drive shows up in device manager but not disk manager.  Any suggestions on how to format this drive and partition it. I am running windows 7 64bit os

    Open the Windows Control Panel and then select Device Manager which allows you to initialize and format new hard drives installed in your system.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Why don't the add ons work when I install them? I can see them in the addon manager, but they don't work when I want to use them. Also very annoying when you have to register for one stinking question!!!

    I installed a new dictionary. Something that worked fine when I installed it in the previous versions, works fine on my pc. But I have installed the dictionary 3 times now and it won't "take". I see it in the addon manager, but when I want to switch from us to dutch dictionary, it's just not there to be switched to. It's annoying and I need the dictionary

    You can see which dictionary is selected if you right-click in a text area and open the Languages submenu.
    * http://kb.mozillazine.org/Spell_checking
    * http://kb.mozillazine.org/Dictionaries
    * https://support.mozilla.org/kb/Using+the+spell+checker

  • After configuring SSL, cannot run Report Manager but ReportServer works fine

    I'm using SSRS 2014 as part of SQL Server 2014 Express. I've configured both the Web Service URL and the Report Manager URL to use a Certificate and only allow port 443 traffic. I did this by removing the port 80 identity and adding an SSL Identity.
    All is working well for https://myserver.com/ReportServer. But when I try and access report manager, I get the following error when running remote:
    The underlying connection was closed: Could not
    establish trust relationship for the SSL/TLS secure channel.
    When running directly on the server, the server, it just rejects my passwords and asks for it again.
    If I remove the SSL Indentity and add back in port 80, it works fine over https.
    Any ideas of what might be causing this problem?
    Thanks,
    Glenn
    Please mark this post as Answered if it solved your problem, otherwise you can click Vote if it helped you out. -Glenn Thimmes

    Hi Glenn,
    Per my understanding that you have added an SSL Identity and you got some errors "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." when you logging remotely to the report manager,
    but which work fine when login report server, and it also asked for credential when you login report manager locally, right?
    The issue can be caused by many factors. Please check below points one by one to help you clarify:
    In rsreportserver.config file(Path like this:C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer), ensure that SecureConnectionLevel is set to the value 2 or 3. If disable the SSL value is set to 0.  Corrected
    line in your rsreportserver.confiog file should look like:
    <Add Key="SecureConnectionLevel" Value="3"/>
     In rsreportserver.config, add the correct value to the <URLRoot> element. the ReportServerUrl value must be the name of the server that is registered for that certificate. with a hostname that is valid for your certificate. For example, if the
    certificate is registered to https://adventure-works.com.onlinesales, the report server URL would be
    https://adventure-works.com.onlinesales/reportserver.
    <UrlRoot>
    https://adventure-works.com.onlinesales/reportserver.
    </UrlRoot>
    Ensure that your certificate exists in Trusted Root Certification Authorities in certmgr for the local machine.
    http://www.c-sharpcorner.com/uploadfile/anavijai/could-not-establish-trust-relationship-for-the-ssltls-secure-channel/ 
    This is very important. In rsreportserver.config file, add the same value to the <ReportServerUrl> element the same as that you added in step 2. 
    <ReportServerUrl>
    https://adventure-works.com.onlinesales/reportserver.
    </ReportServerUrl>
    Then restart your report server (stop & then start in Report Server Configuration Manager).
    Article related to this issue also contain the troubleshooting for your reference:
    http://msdn.microsoft.com/en-us/library/ms345223(v=sql.100).aspx
    Similar threads for your reference:
    Could not establish trust relationship for the SSL/TLS secure
    channel
    SSRS 2008- Underlying connection
    was closed – could not establish trust relationship for SSL/TLS
    If your problem still exists, please try to provide us snapshopt about the setting for the SSL Identity and also the Report Manager URL,etc.
    Regards
    Vicky Liu

  • I have ipod nano 6G.I was trying to restore it to clear all the data but it showed error 1439 and couldn't restore.I tried every method given in errors help page but nothing worked.What should i do?

    I have ipod nano 6G.I was trying to restore it to clear all the data but it showed error 1439 and couldn't restore.I tried every method given in errors help page but nothing worked.What should i do?

    Just in case (even though your symptoms aren't explicitly mentioned in the document), let's check to see if there's a LSP problem in play here:
    Apple software on Windows: May see performance issues and blank iTunes Store

  • I cannot get my iPad2 to communicate with a Motorola H700 wireless headset. The iPad shows that they are connected, but nothing works.

    I cannot get my iPad2 to communicate with a Motorola H700 wireless headset. The iPad shows that they are connected, but nothing works. I am trying to get the little microphone to show up for voice messaging.

    I have since fiund out that the talk to text feature is only available on devices that support Siri, iPad3, iPhone4 and later. Hope this helps someone else.

  • HT4061 My phone can't turned on. I tried to press the home button and main button at the same time, but not working. what should I do?

    Iphone 4s can't turned on, goes total black. Tried to press button and main button at the same time, but not working. what should I do?

    recovery mode
    open itunes on computer
    plug cable into computer not iOS device
    turn phone off
    hold home button and plug cable into phone.  do not release home button until an itunes graphic appears on device.
    look to computer should have message about recovery mode click ok and restore
    Peace, Clyde
    if u need an article see
    http://support.apple.com/kb/HT1808

  • TS1559 my iphone 4s version 7.0.4 wifi turned out grey. i restored my iphone also but didnt work, what shall i do???

    my iphone 4s version 7.0.4 wifi turned out grey. i restored my iphone also but didnt work, what shall i do???

    ChrisJ4203, thanks very much for your input.  I don't mean to turn this post into an endless debate, but frankly I am still having a hard time believing that the WiFi died as a result of a hardware failure.
    My logic might be flawed, but here it is:
    While the iPhone 4S got very hot when wirelessly downloading and installing iOS 7.0.4 over the WiFi network, the WiFi chip and antenna had to be functional to complete the wireless iOS update.  Apple was very clear that iOS 7.0.4 is too large to download and install via cellular service.  Accordingly it would appear that any hardware failure had to occur in the few minutes between the download/installation of iOS 7.0.4 and its first use.  That window of opportunity is incredibly small in an otherwise flawless hardware performance.  I am not a big believer in long shot coincidences, so a WiFi hardware malfunction seems highly improbable to me, but not impossible.  A firmware/iOS conflict still seems more plausible to me.
    I also don't read much into Apple's "out-of-warranty" replacement offer at $199.  AT&T tells me that anyone walking in off the street (with or without a hardware or iOS malfunction) would receive the same offer.
    I appreciate that some iPhone 4S users did not experience any WiFi issues when they updated to iOS 7.0.4, but such difference could easily be explained if Apple used more than one WiFi chip and/or firmware in the iPhone 4S series.  Such an explanation would also account for iOS 7.0.4 (and 7.0.6) not recognizing the WiFi chip after the iOS update.
    Still perplexed, but thanks again for your kind efforts to help.
    Wonder if I can limp along long enough to spend my money on an Apple iPhone 6 ... but then again I don't want to be anyone's beta-tester.
    I am tempted to switch to a Samsung Galaxy or some other smartphone as long as I will be buying new accessories, but frankly I don't want to waste my time learning a new OS or core apps.

  • Safari crashes but mail works what must I do to fix it?  I have a MAC OS X 10.7.5

    Safari crashes but mail works what must I do to fix it?  Please help.

    What Extensions do you have installed in Safari, and is Glims one of them?
    Try turning them all off in Safari>Preferences>Extensions and also in Glims (if installed - I think it has its own set of Preferences) and then test.

  • My ipod has a white screen and i cant do nothing i click on the home the volume and the lock botton but nothing work what do i do

    my ipod has a white screen and i cant do nothing i click on the home the volume and the lock botton but nothing work what do i do

    Let the battery fully drain. After charging for an hour try:
    - A reset.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Connect to computer and try to retore.
    - If the screen remains white and you can't trun it off then it is time for an appointment at the Genius Bar of an Apple store. You very likely have a hardware problem.

  • Shows the status "failed" in AddOn Manager

    I have created a  addon for our clients. The addon works fine and loads up each time a user logs into B1. The only issue I am seeing is that the addon is listed with a "Failed" status in the Addon Manager even though the addon works fine.
    Is there some code that I need to include to ensure that the status is set to "Connected".

    Hi Parag,
    Yes this is a problem, for sort out this problem, when you are creating installer for your addon you can open the CustomInstallerClass.vb under customerLibrary in your installer project.
    and do this change
    actual code:
    #If Version = "2005" Then
          '' Call B1 EndInstallEx, succeeded true
          ret = EndInstallEx(targetDir, True)
                If (ret <> 0) Then
                    MsgBox("Error at EndInstallEx(True) call at the end of the AddOn installation: " + targetDir)
                End If
    #Else
          '' Call B1 EndInstall (no parameters)
          ret = EndInstall()
          If (ret <> 0) Then
            MsgBox("Error at EndInstallEx() call at the end of the AddOn installation")
          End If
    #End If
    change it to :
    #If Version = "2005" Then
          '' Call B1 EndInstallEx, succeeded true
          ret = EndInstallEx(targetDir, True)
                If (ret <> -1) Then
                    MsgBox("Error at EndInstallEx(True) call at the end of the AddOn installation: " + targetDir)
                End If
    #Else
          '' Call B1 EndInstall (no parameters)
          ret = EndInstall()
          If (ret <> 0) Then
            MsgBox("Error at EndInstallEx() call at the end of the AddOn installation")
          End If
    #End If
    you have to compare ret to '-1' instead of '0'
    after done that change again rebuild your solution, its working fine.

  • Addon manager in not working for fennec alpha3 or beta. Release notes say that AMO is supported

    if i try to search for any addon in the addon manager, it says "unable to retrieve addon"

    Fennec 1.0 alpha 3 was released over a year ago and is not currently a supported version. If you are using Fennec 1.0 alpha for Windows Mobile, we are sorry but we are no longer developing or supporting Fennec for Windows Mobile phones.
    If you are using Fennec on Maemo or Android, or on a desktop computer, please upgrade to the latest release (4.0 beta 1): http://www.mozilla.com/mobile/download/

  • When I bought my computer I also bought Works hard drive failed had Apple repair it but no Works what can I do?

    When I originally bought my iMac I also bought Works, then my hard drive failed and I had apple replace it but when I got my computer back no Works what are my oppitions or am I SOL?

    Where did you purchase iWorks from?  If it was on a disk use the disk to reisntall iWorks.  If you purchased it from the App Store you should be able to log into the App Store with the same Apple ID that you used to purchase the iMac and original iWorks and download it again but for free. 
    If you have any problem downloading contact the App Store Support personnel via this link at the App Store:
    OT

  • Gmail access fails on safari. But it works when i login as administrator. Please help!

    I am unable to use gmail from a regular user account on my iMac.It fails with an error string that ends with "... becasue Safari can't establish a secure connection to the server "accounts.google.com". "
    I have tried resetting safari and it does not help.
    I have tried adding DNS entries based on some discussion board suggestions and that does not help either.
    I am able to access gmail as an administator on the same machine though!
    Please point me in the right direction, please! Thanks!

    You may have to take the computer to the Apple store to have the computer checked out.
    Dead line is tuesday?
    1. Try an external USB keyboard.
    2. This may help.
        http://support.apple.com/kb/PH10680
    3. Virtual keyboard
        There is a virtual keyboard available in OS X 10.8.4
        System Preferences > Keyboard
        Checkmark the box beside "Show Keyboard & Character Viewrs in menu bar.
        Click "Input Sources"  and then "Show input menu in menu bar".
    Best.

Maybe you are looking for

  • ZoneAlarm with Windows 7 on Bootcamp partition

    Hi all, Just thought I'd save some those interested some hassle. At the time of this post, there is a known problem with ZoneAlarm Extreme Security for Windows on a computer with an i7 processor. My experience was an installation of ZoneAlarm Extreme

  • Problem in starting Sun Java System Application Server

    Hi, Recently I installed SJSAS 8.1 on my machine (Windoes 2000), before that I was working on SJSAS8.0 and it was working file. But with 8.1 when I try to "Start Default Server". I get the following error on the console: Starting Domain domain1, plea

  • Stressed trying to update iphone not working help!!

    i go onto itunes plug my iphone in and it say do you want to upgrade and download your iphone now which i click yes and it keeps coming up with an error saying sorry the connection has timed out! help!!

  • Input and Output Stream conversion

    I have problem. In my application I should change OutputStream to InputStream and vv. I try to explain it using easy example. I am creatin xml document and using XMLOutputter (I am using org.jdom parser) I could write it to file using FileOutputStrea

  • Double datatype in tdm which is converted from tdms

    Hi all, In short, to be able to delete channels and groups from a tdms file, I convert the file to a tdm, delete channel or group by making use of storage VIs, and convert it back to tdms. The problem is, when tdms is converted to tdm, double data ty