Toolkit 1.13 error (Windows Server)

Discussion in 'C-Bus Toolkit and C-Gate Software' started by Charlie Crackle, Dec 12, 2013.

  1. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    I just upgraded Tool kit from 1.12.7.1166 to 1.13.01847 (running as a windows service)

    Windows 2003 Server x32.


    First I got this which I said OK to (Want is the PORT COM _LPT ???)

    installed ok.

    then when I run from the icon get could not register sharpcontainer.DLL

    I then reinstalled 1.12.7.1116 and all working again.

    Any ideas why this does not work ??
     

    Attached Files:

    Charlie Crackle, Dec 12, 2013
    #1
  2. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    I tried to register the DLL by hand

    regsvr32.exe C:\Clipsal\CBusToolkit\SharpContainer.dll

    got this error
     

    Attached Files:

    Charlie Crackle, Dec 12, 2013
    #2
  3. Charlie Crackle

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    Hi Charlie,

    We don't currently support Windows 2003 Server and haven't tested on that platform.

    Having said that, I have a few pointers that might help you work through the issue.

    1. SharpContainer.dll was introduced in 1.12.7 for the eDLT Dialog. We added a check (and the error you saw) in 1.13.0 to ensure it was registered successfully. So we suspect that while Toolkit 1.12.7 may seem to work for you, you probably won't be able to open an eDLT unit dialog. If you can add one to a database and help confirm or deny this it will help a lot.

    2. Googling indicates that Windows Server 2003 doesn't work well with .NET installers that download components from the internet. You may want to ensure that you have a complete and functioning install of NET 4.0 Full Profile and the easiest way to do this is to install the full offline installer from Microsoft, e.g from here http://www.microsoft.com/en-au/download/details.aspx?id=17718

    While you're at it, just for the sake of completeness, grab and install the Visual C++ 2008 SP1 Redistributable and the Visual C++ 2010 Redistributable yourself.

    The Toolkit installer should detect all of these and then won't attempt to download or install them.

    3. Double check you are running the Toolkit installer as an administrator. Same for any other manual installation or command-line activity.

    4. Regsvr32.exe isn't the right tool for this DLL, you need to use regasm.exe.

    The relevant bit of code in our installer is
    Filename: {dotnet4032}\regasm.exe; Parameters: " /tlb ""{app}\SharpContainer.dll"" "; WorkingDir: {dotnet4032}; StatusMsg: "Registering SharpContainer.dll...";

    I'll have to leave that to you to figure out the equivalent on your OS.

    I hope this helps, let me know how it goes!
     
    Last edited by a moderator: Dec 13, 2013
    daniel, Dec 13, 2013
    #3
  4. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    I checked

    Dot net version 4.0 is installed
    Visual C++ 2008 SP1 Redistributable is installed
    Visual C++ 2010 Redistributable is installed

    Installer has NO errors.

    Still get sharpcontainer error message when starting toolkit.

    I did


    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\
    RegAsm.exe /tlb "C:\Clipsal\CBusToolkit\SharpContainer.dll"

    Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1
    Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

    Types registered successfully

    Type library exporter warning processing 'SharpContainer.SharkUnitDialogFactory.
    UnitForms, SharpContainer'. Warning: Type library exporter encountered a generic type instance in a signature. Generic code may not be exported to COM. Assembly exported to 'C:\Clipsal\CBusToolkit\SharpContainer.tlb', and the type library was registered successfully



    but still when I run toolkit still get the sharpcontainer error.


    I tried to down grade to test the EDLT but for some reason the cgate will not start. upgrade again as starts ok. tried the old exe against but it complains the cgate is need to be 2.x but us 3.0.

    now not working with either version.

    Charles
     
    Charlie Crackle, Dec 16, 2013
    #4
  5. Charlie Crackle

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    Hi Charlie,

    Sorry that I haven't been of any help. I don't think I should meddle any more here, though I have logged your findings internally: TK-9923. Thanks again for taking the plunge to try things out.

    If you uninstall everything, reboot, and then install again you should be able to return to a working configuration of C-Bus Toolkit 1.12.7.
     
    daniel, Dec 16, 2013
    #5
  6. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    OK I got the 1.12.7 working again as you suggested.

    I added a KEYGL5 EDLT and it all works fine.

    I can open the unit. edit the unit. save the unit. screen representation work fine.

    No problems at all.


    Can you remove the check for the register dll. or at least have a command line option that stops this check.


    Charles
     
    Charlie Crackle, Dec 16, 2013
    #6
  7. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne

    Is this going to happen ? would love to be able to edit EDLT 1.2 on my server 2003 remote terminal box.

    the old version does not like the new firmware of the EDLT.

    annoying to have to keep transferring the projects between machines just to program EDLT.

    Charles
     
    Charlie Crackle, Apr 12, 2014
    #7
  8. Charlie Crackle

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    Hi Charles, have a read of the release notes for 1.13.2. We still don't officially support Windows Server 2003 but there is a parameter to bypass this check.
     
    daniel, May 29, 2014
    #8
  9. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    Great Thankyou
     
    Charlie Crackle, May 29, 2014
    #9
  10. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    I just installed on Win2003 Server x32.

    Installs fine.

    Got the new error

    I tried the command line argument.

    It still puts up the error. but when you click OK it continues.

    All seems to work ok. No problems as yet. the GUI works fine. the EDLT gui works fine and can edit EDLTS ok.

    Thankyou for putting in this command line switch.

    Charles
     

    Attached Files:

    Charlie Crackle, May 29, 2014
    #10
  11. Charlie Crackle

    tight_screw

    Joined:
    Jul 12, 2014
    Messages:
    2
    Likes Received:
    0
    Location:
    Australia
    I can't explain why it is happening but I am getting the failure to register SharpContainer.dll each time I try to open the toolkit on either Windows Server 2008R2 or 2012R2 whenever the Remote Desktop services role is installed on that server.
    If I remove the Remote Desktop services role from Windows Server I can open the Toolkit without any problems. Someone needs to fix that bug.
     
    tight_screw, Jul 12, 2014
    #11
  12. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    Interesting that might be why it does not work on 2003 Server as well.

    You can get around this error by using a command line option to continue even when this error occurs.



    C:\Clipsal\CBusToolkit\CBusToolkit.exe /ignoreSCRegistration

    use with care


    Charles
     
    Charlie Crackle, Jul 12, 2014
    #12
  13. Charlie Crackle

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    Hi tight_screw, that's a useful bit of information. I'm curious, how did you discover this relationship to the Remote Desktop service? I never would have thought to try that.

    As Charlie mentions, this parameter will indeed work on Toolkit 1.13.2 and later, but all it does is skip the false-negative raised when validating the DLL registration on Win 2003 Server. If the DLL really does fail to register (whatever the OS), then other parts of Toolkit may not work properly.
     
    Last edited by a moderator: Jul 14, 2014
    daniel, Jul 14, 2014
    #13
  14. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    My 2003 Server was setup as a terminal server. I can confirm today that if I don't install setup as TS then TK works fine on local monitor. But I connect via RDP to the server and run TK then I get the registration error.

    Charles
     
    Charlie Crackle, Jul 17, 2014
    #14
  15. Charlie Crackle

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    Hi Charlie, thanks for the Terminal Server clue. This helped me find the following page which might have a solution: http://support.microsoft.com/kb/966043

    Based on that, perhaps something like this might work - note we have not tried this in-house.

    register "C:\Clipsal\CBusToolkit\SharpContainer.dll" /system

    Let me know how it goes - if there is success I can make a case to have this incorporated in the installation.
     
    daniel, Jul 18, 2014
    #15
  16. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    when I run the command I get


    C:\Clipsal\CBusToolkit\SharpContainer.dll registered SYSTEM GLOBAL

    but did not fix the problem.

    Still get the registration error on starting.

    but all works fine (inc EDLT editing) with the C:\Clipsal\CBusToolkit\CBusToolkit.exe /ignoreSCRegistration
     
    Charlie Crackle, Aug 18, 2014
    #16
  17. Charlie Crackle

    CABrouwes

    Joined:
    Apr 25, 2009
    Messages:
    86
    Likes Received:
    2
    Location:
    New York Area
    Thanks both for troubleshooting the issue. I had been usingToolkit on a machine running Windows Server 2012 R2 without any problem and suddenly I started having the SharpContainer error. Assuredly, I had just installed the remote service role ! The start up switch works (even thought the error message still appears).
     
    CABrouwes, Dec 2, 2014
    #17
  18. Charlie Crackle

    CABrouwes

    Joined:
    Apr 25, 2009
    Messages:
    86
    Likes Received:
    2
    Location:
    New York Area
    Has this been fixed yet ?
     
    CABrouwes, Feb 16, 2015
    #18
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.