Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-20-2008, 07:06 AM
Jim Jim is online now
Registered User
 
Join Date: 05-13-2008
Location: Ukraine
Posts: 7
SyncBuildEX problem

Hi, please, can you help me in my question?

I'm starting build using web page and method SynchBuildEx.
I pass SyncBuildEx(true, "username", "domain", "password", false, true);

Where username - the name of the user (administrator of the computer), domain - domain of user, password- password.

And then build fails on the first step (copy files) with error: access denied.

But if i give full control user rights for the folder i process with copy files - it works well.

I know that it is not secure to leave user full control rights of folder.

Can you help me to solve this problem, because i can't even imagine why administartor can't access folder.

Thanks
Reply With Quote
  #2  
Old 05-20-2008, 10:59 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The error message is returned by Windows, not VBP. The Copy Files action uses Windows APIs such as CopyFileEx, SetFileAttributes, etc., and the user the build runs under will need the permissions required by these APIs.
http://www.visualbuild.com/Manual/syncbuildexmethod.htm
http://msdn.microsoft.com/en-us/library/aa363852.aspx
Reply With Quote
  #3  
Old 05-22-2008, 06:30 AM
Jim Jim is online now
Registered User
 
Join Date: 05-13-2008
Location: Ukraine
Posts: 7
I've tried even to run script at the first step through web interface with

Project.Save "", False

and it fails with error "access denied", but if i run it through GUI or CMD it runs successfully.

I'm confused with this. If you have any suggestions, please reply

Thanks a lot
Reply With Quote
  #4  
Old 05-22-2008, 07:47 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The username/password parameters of SyncBuildEx only apply to other processes started by the build. The identity of the build thread itself (and actions like Copy Files, Run Script, etc., which execute on that thread) when called from WebLauncher depends on the context of the page/code invoking the VBP object model.
http://www.visualbuild.com/Manual/syncbuildexmethod.htm
http://www.visualbuild.com/Manual/weblaunchersample.htm
http://www.kinook.com/Forum/showthre...?threadid=2846
http://www.kinook.com/Forum/showthread.php?threadid=937
http://www.kinook.com/Forum/showthre...?threadid=1755
Reply With Quote
  #5  
Old 05-22-2008, 10:13 AM
Jim Jim is online now
Registered User
 
Join Date: 05-13-2008
Location: Ukraine
Posts: 7
big thx, it helped.

If it is not hard for you, can you please provide source code with synchronization and reading stdout during nowait execution.

Thanks a lot
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:06 PM.


Copyright © 1999-2023 Kinook Software, Inc.