Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

AppData environment variable doesn't work on Server 2003

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
hawkun



Joined: 01 Apr 2011
Posts: 15
Location: Lund, Sweden

PostPosted: Wed Apr 20, 2011 3:20 pm    Post subject: AppData environment variable doesn't work on Server 2003 Reply with quote

Hi,

I'm using the AppData environment variable in the Source path (<appdata>), but it doesn't seem to expand correctly on Windows Server 2003. It works just fine on Server 2008, Windows 7 etc.

From the log:
Code:
2011-04-20 17:11:58 : [ERROR] Source: "<APPDATA>\VVEngine\", invalid parameter syntax, unknown parameter <APPDATA>
2011-04-20 17:11:59 : Exit Code: 13. Source folder not found. [ERROR]


I've checked the variable from the command prompt (echo %appdata%), and it seems to be set to the correct value.

The reason for using the variable is that I want the same profile to work on different computers (different OS).

How to fix this?

Thanks!
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8759

PostPosted: Sat Apr 23, 2011 7:06 am    Post subject: Reply with quote

Hi, that's strange, it works on my 2003... can you try running a custom script before ViceVersa (profile settings -> advanced settings) and check the appdata value?

thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
hawkun



Joined: 01 Apr 2011
Posts: 15
Location: Lund, Sweden

PostPosted: Tue Apr 26, 2011 9:41 am    Post subject: Reply with quote

I solved the problem. It turned out I ran the VVEngine service as one account (local administrator), and was logged on to the server with another (domain administrator). I was handling the scheduled profiles as domain administrator so the settings XML file probably got stored in another "<appdata>\VVEngine" folder than expected.

When VVEngine runs the profile it looks for the non existing source folder "<appdata>\VVEngine". Not finding the source folder ("VVEngine") seems to make <appdata> not expand to the correct value (it seems to be ""), resulting in ViceVersa to generate a somewhat misleading error message (syntax error).

I changed the VVEngine service to run as domain administrator and now it works like a charm.
Back to top
hawkun



Joined: 01 Apr 2011
Posts: 15
Location: Lund, Sweden

PostPosted: Thu Aug 25, 2011 8:06 am    Post subject: Reply with quote

Hm.. not working so well after all.

Because the folder where VVEngine stores application data is %user% dependent I have to use <appdata> in the path in my ViceVersa profile. But to make <appdata> work I have to be logged in to the machine, even if VVEngine runs as a service and don't need anyone to be logged in.

The VVEngine service runs as "domain administrator", but if I'm not logged in as "domain administrator" at the machine ViceVersa seems to expand <appdata> to "" instead of the correct "domain administrator" appdata folder.

Possible solution 1: You correct this in an VVEngine/ViceVersa update.

Possible solution 2: You give me instructions how to change the path to the folder where VVEngine stores its application data. Then I can select a folder that is not %user% dependent, and the whole problem will be gone Very Happy.

Thanks!
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: