Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-19-2006, 10:42 PM
CMoore CMoore is online now
Registered User
 
Join Date: 12-13-2006
Posts: 8
IIS Virtual Dir for remote server.

Hi,

I am trying to create an IIS Virtual directory (And Application) on our deployment server with Visual Build Pro. When I run the IIS Virtual Dir script I get the error :

Error in Action (JScript) script code at Line 50, Column 4 (Path not found)

I'm not really sure how this can work, I want to create the directory in the Local path: field on the server machine and not on the machine that is doing the build. It appears (I could be wrong) that this script is trying to create the directory on the local machine...and therefore I can understand the error because the directory structure isn't set up on this machine.

I presume I'm supposed to be able to do this because there is a Server parameter to the script?

Thanks,
Colin.
Reply With Quote
  #2  
Old 12-20-2006, 11:14 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
When creating a virtual directory on a remote server with the IIS Virtual Dir action, the physical folder for the virtual dir must already exist. You can use a Create Folder action to create it (but keep in mind that the path specified there must be relative to the local computer [i.e., \\server\c$\path\to\create] rather than the remote one [i.e, c:\path\to\create]).
Reply With Quote
  #3  
Old 12-20-2006, 08:08 PM
CMoore CMoore is online now
Registered User
 
Join Date: 12-13-2006
Posts: 8
That creates the virtual directory, but doesn't produce what I need. Using these settings, on the remote web server, the virtual directory is set up to get its content from "A share located on another computer" and the Network directory is set to
\\SERVER\C$\WebApplications\V1.0.0.12
as you suggested to get it to work.

What I want is to remotely create a virtual directory that is set to get its content from "A directory located on this computer" and the
local path set to C:\WebApplications\V1.0.0.12

Is this possible?

I would also like to set the Application name and the Execute permissions to Scripts only.
Reply With Quote
  #4  
Old 12-21-2006, 08:49 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The path specified in the IIS Virtual Dir action must be relative to the remote computer (i.e., c:\path\to\dir). But there is a bug in the action -- it looks for and tries to create the physical dir on the local computer. Attached is a .bld file you can build to fix this problem.
Attached Files
File Type: bld iisdirfix.bld (550 Bytes, 1365 views)
Reply With Quote
  #5  
Old 01-03-2007, 12:21 AM
CMoore CMoore is online now
Registered User
 
Join Date: 12-13-2006
Posts: 8
Another problem..
I am getting :
Error in Action (JScript) script code at Line 21, Column 2 (Permission denied)

when creating the IIS Virtual Directory using the modified build script from above. This error only happens when I log onto my windows xp box with the DOMAIN Admin account. If I log on as the local machine administrator, it works.

Any ideas on how to fix this?

Thanks,
Colin.
Reply With Quote
  #6  
Old 01-03-2007, 08:42 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Not really, but some possibilities:
http://www.google.com/search?q=w3svc...ccess%20denied
http://support.microsoft.com/?id=271071
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:17 PM.


Copyright © 1999-2023 Kinook Software, Inc.