Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS Permissions problem on new PC

Status
Not open for further replies.

shaunk

Programmer
Aug 20, 2001
402
AU
I have just purchased an NX6125 HP laptop and loaded IIS.
I have an intranet application that ran on my last box under //localhost
On moving to the new box, I am receiving permission problems whenever I try to write to a directory using ASP.

The code is fairly simple:

Code:
<% 
set fs=Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = fs.getFolder("c:\e1")
For each objFile in objFolder.Files
	copysource = "c:\e1\" & objFile.name 
	copydest = "c:\EALL\"  
	fs.Copyfile  copysource,copydest
 next %>

I am running up against a permission problem when running this code.

Any ideas much appreciated.


 
how did you move it to the new box, a restore of a backup or just a copy/paste operation?

-Brandon Wilson
MCSE00/03, MCSA:Messaging00, MCSA03, A+
Sr. Infrastructure Management Analyst
Distributed Systems Engineering
ACS, Inc.
 
Maybe you've solved your problem. If not, try giving the ASPNET account write permission to this folder when you're running IIS 5.x. Under IIS 6.0 give the NETWORK SERVICE account write access.

 
Apologies for not responding....I had a notification problem which I have since rectified.

I finally found the spot in IIS configuration that grants the permissions as described by HermanvLimbeek.
Thanks

The risk with keeping an open mind is having your brains fall out.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top