473,387 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Using FileSystemObject to write across the network

I'm pulling my hair out over this one. I've got a web page that I need to
have write to another server across the network. The site in question does
NOT run in anonymous mode, that is, the user is presented with a
username/password box when they view the page.

No matter what I do, when the page attempts to access the remote server, I
get a Permission Denied error. I have tried the suggestion from this page:

http://support.microsoft.com/default...NoWebContent=1

As a baseline, I created a blank, normal, anonymous access web on the same
machine. I did as described in the article above.

I tried resetting the password for IUSR_computername, and setting the
anonymous password in the metabase to match. I created the IUSR_computername
account on the remote server with the same password, and gave it log on
locally rights. I even tried giving IUSR_computername administrator access,
on both servers. No matter what I did, it failed with Permission Denied.

The *only* thing that got it to work was telling the web site to use
"administrator" for anonymous access instead of IUSR_computername. This
worked fine - but isn't really very safe.

I'm at a complete loss. What I WANT to do is to not run the site with
anonymous access at all, which means I can't even specify the account used
for anonymous access. Trying this, and typing in the administrator username
and password when viewing the web page also gets the familiar "Permission
Denied."

My simple code is below:

<%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")

Set tso = FSO.CreateTextFile("\\192.168.0.60\c$\temp\testfil e.txt", True)
tso.WriteLine "Test"
tso.Close
Set tso = Nothing

Set FSO = Nothing
%>
Jul 19 '05 #1
1 4642
That ASPFAQ page basically says "to access files using FileSystemObject, see
this page" and links to the page I already described below, which was of no
help.

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
www.aspfaq.com/2168

"Scott MacLean" <sc*****@SPAMnerosoft.com> wrote in message
news:u#**************@tk2msftngp13.phx.gbl...
I'm pulling my hair out over this one. I've got a web page that I need to have write to another server across the network. The site in question does NOT run in anonymous mode, that is, the user is presented with a
username/password box when they view the page.

No matter what I do, when the page attempts to access the remote server, I get a Permission Denied error. I have tried the suggestion from this page:

http://support.microsoft.com/default...NoWebContent=1

As a baseline, I created a blank, normal, anonymous access web on the same machine. I did as described in the article above.

I tried resetting the password for IUSR_computername, and setting the
anonymous password in the metabase to match. I created the

IUSR_computername
account on the remote server with the same password, and gave it log on
locally rights. I even tried giving IUSR_computername administrator

access,
on both servers. No matter what I did, it failed with Permission Denied.

The *only* thing that got it to work was telling the web site to use
"administrator" for anonymous access instead of IUSR_computername. This
worked fine - but isn't really very safe.

I'm at a complete loss. What I WANT to do is to not run the site with
anonymous access at all, which means I can't even specify the account used for anonymous access. Trying this, and typing in the administrator

username
and password when viewing the web page also gets the familiar "Permission Denied."

My simple code is below:

<%
Set FSO = Server.CreateObject("Scripting.FileSystemObject")

Set tso = FSO.CreateTextFile("\\192.168.0.60\c$\temp\testfil e.txt", True) tso.WriteLine "Test"
tso.Close
Set tso = Nothing

Set FSO = Nothing
%>


Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Wayfarer | last post by:
Hi, I've got a freebie hosting mirror of my production personal website (sounds kinda grandiose, doesn't it?) at http://journeys.webhostme.com/. At the production website I was using...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
9
by: kermit | last post by:
I keep seeing that you can use the FileSystemObject in either VB script, or Javascript on an aspx page. I added a refrence to the scrrun.dll I added importing namespaces for 'System.Object',...
2
by: Luis Esteban Valencia | last post by:
I'm trying to write a little VB.NET script in an ASP.NET web page that will create folders, move files, etc... pretty much everything you can expect to do using the FileSystemObject library. Is...
5
by: Josh Rolfe | last post by:
I have a page in classic asp that accces a network drive, The code is as follows: <% dim fso dim objFolder set fso=server.createObject("Scripting.FileSystemObject") set...
4
by: mabond | last post by:
Hi I have a number of apps which are compiled to a shared network directory. Users run the executables from this directory. When rebuilding my apps I cannot complete the build if the...
6
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web...
5
by: VancouverMike | last post by:
Hi there, I am writing a web app using asp.net 1.1 and C#. This web app is launched in another win32 application and this app needs to pass information to my web app. But this win32 application...
0
by: harpsb | last post by:
Hi to everyone I am wondering how to develop a web application like Windows Explorer. The main task is to access local PC hard drives and all other hard drives on the network that are connected...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.