473,651 Members | 3,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using FileSystemObjec t 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_computerna me, and setting the
anonymous password in the metabase to match. I created the IUSR_computerna me
account on the remote server with the same password, and gave it log on
locally rights. I even tried giving IUSR_computerna me 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
"administra tor" for anonymous access instead of IUSR_computerna me. 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.CreateOb ject("Scripting .FileSystemObje ct")

Set tso = FSO.CreateTextF ile("\\192.168. 0.60\c$\temp\te stfile.txt", True)
tso.WriteLine "Test"
tso.Close
Set tso = Nothing

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

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

"Scott MacLean" <sc*****@SPAMne rosoft.com> wrote in message
news:u#******** ******@tk2msftn gp13.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_computerna me, and setting the
anonymous password in the metabase to match. I created the

IUSR_computerna me
account on the remote server with the same password, and gave it log on
locally rights. I even tried giving IUSR_computerna me 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
"administra tor" for anonymous access instead of IUSR_computerna me. 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.CreateOb ject("Scripting .FileSystemObje ct")

Set tso = FSO.CreateTextF ile("\\192.168. 0.60\c$\temp\te stfile.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
6822
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 Scripting.FileSystemObject to get the date that the file was last modified and to read/write a counter text file for the number of hits that the whole site had. The freebie has a kind of half-ass*d FileSystemObject, but it has no GetFile method. Is there...
11
6583
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 where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
9
3906
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', 'Scripting', 'Scripting.FileSystemObject', and a few others However, when I try to create the fso object I keep receiving an error. 'ActiveX component can't create object: 'Scripting.FileSystemObject'
2
4028
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 this possible in .NET? If so, how do I do it? I've tried:
5
10176
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 objFolder=fso.GetFolder("f:\") for each objFile in objFolder.files response.write objFile.name & "<br>" next
4
1365
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 executable is in use. I would like a simple app that would browse the file(s) in that network directory and return the name/machinename of the person currently using the
6
12586
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 folder. I that possible? Thanks.
5
5181
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 doesn't support long string(Maximum 255), which gives me problem passing information longer than 255 through querystring. So I have to use an intermedia plain file and in my web app, using Scripting.FileSystemObject to open the file and read the...
0
1067
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 to my PC. So how can i use FileSystemObject Object to create one. i want something that can show drives of my PC on the web page using asp.net and vb.net. I am really struggling, please help me if anyone have clue.
0
8278
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8807
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7299
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.