Showing results 1 to 3 of 3

Thread: Workspace file cached locally?

  1. #1
    Join Date
    17.03.2016
    Posts
    37

    Default Workspace file cached locally?

    Hi,

    I have experienced quite a strange issue while working with the Zenon editor across different machines, with the editor losing changes when editing on a different machine to the previous time. Maybe you can advise what may be the cause....

    Some basic info:
    Server = Windows 2012 server
    Client = Windows 7 64 bit
    Network... basic windows workgroup (no domain)
    Copadata = Zenon Energy Edition 7.50

    So essentially the problem is this. The workspace is stored on the server in C:\Users\Public\Documents\Copadata\<Projectname>\< Project workspace file>
    I have the runtime running on server & client, working away ok. The last time I edited the project I opened the editor up on the server and made changes. All ok so far.

    This time I opened the editor on the client machine. I pointed the editor to \\<SERVER>\<Shared drive>\Users\Public\Documents\Copadata\<Projectnam e>\<Project workspace file>

    Now the 'workspace' that appears is an OLD version of the workspace... it has lost all the changes the last time I made them on the server. To test I made some changes to the workspace then closed it down. I then opened the ediotor on the server again. Once more the changes I made on the client are not in the workspace.

    The solution for this was to make a workspace backup after working on it on one machine & restoring from the other machine (to the same shared drive on the server). My question is how can this happen when the workspace is saved in the same place... on the server?

    Is there some kind of local caching happening in the Zenon editor? Have you seen something like this before?

    Many thanks,

    Dave
    Last edited by HMIdeveloper123 : 17th November 2016 at 16:58 Reason: Post lost some formatting due to file paths

  2. #2
    Join Date
    10.12.2007
    Posts
    181
    Best Answer

    Idee Re: Workspace file cached locally?

    Hi,
    the Worspacefile only contains information about the Projects in the Workspace like the Project-GUIDs. It does not contain information about the Database Server. This information is stored in the zenDB.ini file (%cd_system%)
    So when you open the Worspacefile on the Server with the zenon Editor on the Client then the local zenDB.ini on the Client is used. And this zenDB.ini will probably point to the local SQL-Server. As the Client has also got Project-Databases with the same Project-GUID, your editor opens this databases without any error. But it is different to the server database.

    You have to use the Startup-Tool on the Client. Create an Entry for the Workspace and change the database to the SQL-Server Instance on the server. Then it should work.

  3. #3
    Join Date
    17.03.2016
    Posts
    37

    Default Re: Workspace file cached locally?

    That makes a lot of sense! Thanks for the explanation.

Similar Threads

  1. Read workspace name from VSTA
    By miguel.martinez in forum VSTA
    Replies: 0
    Last Post: 9th November 2016, 14:19
  2. Workspace Addin mit VB.Net
    By and12121 in forum VSTA
    Replies: 5
    Last Post: 26th February 2014, 11:55
  3. Replies: 1
    Last Post: 25th July 2013, 11:07
  4. My workspace Macros?
    By softart2 in forum VSTA
    Replies: 4
    Last Post: 27th December 2010, 00:58
  5. Empty Workspace
    By bernhardf in forum zenon Supervisor
    Replies: 0
    Last Post: 20th May 2010, 13:54

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •