tcgc PortList Access Denied

Discussion in 'C-Bus Wired Hardware' started by oscar.fog, Feb 14, 2007.

  1. oscar.fog

    oscar.fog

    Joined:
    Dec 10, 2006
    Messages:
    8
    Likes Received:
    0
    hi just downloaded the new toolkit software and horrible things are happening, i am getting a error 3104 message saying "Tcgc PortList 420 Access Denied" when trying to import a project and the following error appears when i go to open up the program (attached as a word doc),

    "Exception 'ECGateCommandTimeOut' in module CBusToolkit.exe at 001534BE
    TcgcProjectDir420 Access denied.


    Module: CIS_TCGateCommand, Source: CIS_TCGateCommand.pas, Line 563
    Procedure: TThreadCommandSynchroniser.ProcessResponses"

    I have tried re-installing the software and it still appears, i can't go any further in terms of programming

    any help would be wonderful

    oscar.fog
     

    Attached Files:

    Last edited by a moderator: Feb 14, 2007
    oscar.fog, Feb 14, 2007
    #1
  2. oscar.fog

    MIB

    Joined:
    Feb 22, 2006
    Messages:
    56
    Likes Received:
    0
    Hi oscar.fog,

    Did you click the "Send" button in that error dialogue?

    Your best bet is to click it, as it will send the error report to Clipsal to be analysed.

    Hope that helps. :)
     
    MIB, Feb 14, 2007
    #2
  3. oscar.fog

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    Hmmm sounds like you might have permission issues. Check your C:\CLIPSAL\C-Gate2\config\access.txt file and see that it looks similar to this.

    Code:
    ##C-Gate Server Access Control File
    ## This file was written automatically by a command issued to the server
    ## Created:Tue Oct 05 16:22:26 CST 2004
    ## File name: C:\clipsal\c-gate\config\access.txt
    interface 0:0:0:0:0:0:0:1 Program
    interface 127.0.0.1 Program
    interface localhost Program
    ## End of access control file
    
    I assume you are not connecting to a remote c-gate.
     
    Richo, Feb 14, 2007
    #3
  4. oscar.fog

    oscar.fog

    Joined:
    Dec 10, 2006
    Messages:
    8
    Likes Received:
    0
    tcgc portlist

    Hi i am not using a remote c-gate, I have been using a different computer for the last couple of jobs and i didnt have a serial port and the usb adaptor wasnt connecting to the touchscreen except via c-bus which takes too long so I thought that I would revert back to my previous laptop with the serial port, it hasnt seen a cbus job since v2 but is more that capable if i could sort this problem. Will have a look at the permissions thing.

    Would having a firewall be part of the problem. I am completely stumped on this one and need any help

    oscar.fog
     
    oscar.fog, Feb 14, 2007
    #4
  5. oscar.fog

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    I don't think it is a firewall as you are connected and talking to cgate. I'll breakdown the error message to give you a better idea why I think it is a permission issue.

    Code:
    "Exception 'ECGateCommandTimeOut' in module CBusToolkit.exe at 001534BE
    TcgcProjectDir420 Access denied.
    
    Exception 'ECGateCommandTimeOut'
    This means that an
    ECGateCommandTimeOut exception has been raised in our code. This is raised when a command we send to cgate doesn't return a recognised response within 20 seconds (this time is subject to change).

    in module CBusToolkit.exe at 001534BE
    This says that it is from the main CBusToolkit and not some other part of the operating system.

    TcgcProjectDir420 Access denied.
    The "TcgcProjectDir" lets me know that Toolkit was asking C-Gate for a list of all the projects it knows about.
    "TcgcProjectDir" is a name for the bunch of code we wrote to do this. "420 Access denied." is what response we had received from C-Gate up until the timeout. This is what lets me know that you don't have suffecient permissions to ask for the list of projects. This can only happen if the access.txt file is not configured correctly.

    The other thing this error tells me is that incorrectly we don't repond to the "420 Access denied" error and instead ignore it causing a timeout. This is a defect and I will look at fixing this in the future so a more helpful message is displayed.
     
    Richo, Feb 14, 2007
    #5
  6. oscar.fog

    oscar.fog

    Joined:
    Dec 10, 2006
    Messages:
    8
    Likes Received:
    0
    thanks

    thanks for this, if its a permissions issue how do i sort this, please bear with me as i have never came across this kind of thing

    oscar.fog
     
    oscar.fog, Feb 14, 2007
    #6
  7. oscar.fog

    oscar.fog

    Joined:
    Dec 10, 2006
    Messages:
    8
    Likes Received:
    0
    another unexpected error

    hi richo

    i changed the access txt file as you suggested and this error appeared



    Exception 'ETransformProjectRequired' in module CBusToolkit.exe at 00152CF4
    Project must be upgraded before it can be used

    Module: CIS_TCGateCommand, Source: CIS_TCGateCommand.pas, Line 275
    Procedure: TCGateCommand.CommandExecute


    any clues on this one, changing of the access txt file seems to have solved the tcgc portlist problem but this other wee one has arrived

    thanks for your help so far

    oscar.fog
     
    oscar.fog, Feb 14, 2007
    #7
  8. oscar.fog

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    Hmmm.... you shouldn't see that. You should get a dialog box instructing you on how to upgrade the project (which is as simple as clicking a couple of buttons).

    I can't reproduce this problem. Can you submit the error using the send button on the dialog. That will give us a lot of info in the email it sends us.

    AFTER you have sent the report :) do a backup of the project file, this will be located in the following directory

    c:\clipsal\c-gate2\tag

    the name of the file will be the project name with the .XML extension. Just make a copy in a safe place. DO NOT SKIP THIS STEP!!

    Now open the C-Gate command window. This is the window tooks like an old DOS machine that sits in the background when Toolkit is running. In that winodw type

    PROJECT TRANSFORM [Projectname]


    Where </projectname>[Projectname]

    is the name of the project without the .XML extension . USE THE SAME CASE AS THE FILE (ie. the file is MyProj.xml then type PROJECT TRANSFORM MyProj ... not ... PROJECT TRANSFORM MYPROJ or myproj.

    you should get a repsonse of 200 OK and then you should be able to open the project in Toolkit.</projectname></projectname>
     
    Richo, Feb 14, 2007
    #8
  9. oscar.fog

    oscar.fog

    Joined:
    Dec 10, 2006
    Messages:
    8
    Likes Received:
    0
    400 syntax error

    hi gave that a try but came up with 400 syntax error, sorry for being a pain in the neck here but i am helpless as to how to solve it at the moment any help is much needed
     
    oscar.fog, Feb 14, 2007
    #9
  10. oscar.fog

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    Doh! sorry my fault. command was backwards

    TRANSFORM PROJECT [Projectname]
     
    Richo, Feb 14, 2007
    #10
  11. oscar.fog

    oscar.fog

    Joined:
    Dec 10, 2006
    Messages:
    8
    Likes Received:
    0
    200 OK but still a wee problem

    hi i now have the project in view but when i start up the software i cant see any projects and the only way i can view them is add a project and then they seem to appear, think someone is trying to tell me something here as its problem after problem, i was a v2 guy for years and have been away from cbus for a wee while. error message as before

    Exception 'ETransformProjectRequired' in module CBusToolkit.exe at 00152CF4
    Project must be upgraded before it can be used

    Module: CIS_TCGateCommand, Source: CIS_TCGateCommand.pas, Line 275
    Procedure: TCGateCommand.CommandExecute

    still rears its head every time i start up, is this anything to worry about?
     
    oscar.fog, Feb 14, 2007
    #11
  12. oscar.fog

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    I haven't seen the exception report come thorugh yet?
     
    Last edited by a moderator: Feb 15, 2007
    Richo, Feb 14, 2007
    #12
  13. oscar.fog

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    Yeh, I'd worry. You shouldn't get any errors. I suggest contacting TechSupport as your install seems completely borked.
     
    Richo, Feb 14, 2007
    #13
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.