473,395 Members | 1,936 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,395 software developers and data experts.

Can't save file...

On my server (IIS5 on localhost on WinXP, latest Win-patches etc.) I
can't seem to save a simple file. All rights are set and IIS-user is
administrator. My server crashes. Have to restart the server/ wait some
minutes. There's no error message, just a continuous loading bar in my
IExplorer...
That's my function below, and I'm really sure I used it on other
systems before and it worked.

public sub setFileText(byVal relativePath, byVal fileText)
const overwrite = true
dim fileSystem
dim fileHandle
dim absolutePath

absolutePath = server.mapPath(relativePath)

set fileSystem = server.Createobject("Scripting.FileSystemObject")
set fileHandle = fileSystem.createTextFile(absolutePath,
_overwrite, 0)
fileHandle.write fileText
fileHandle.close

set fileHandle = nothing
set fileSystem = nothing
end sub

(... some error handling removed for clarity ... it still doesn't
work... and no error message either.)

BTW I can use XML object's file-saving methods so it can't really be a
permission-issue...
Anyone got any ideas?
Jul 19 '05 #1
2 2221

"Philipp Lenssen" <in**@outer-court.com> wrote in message
news:bp*************@ID-203055.news.uni-berlin.de...
There's no error message, just a continuous loading bar in my
IExplorer... set fileSystem = server.Createobject("Scripting.FileSystemObject")


http://www.aspfaq.com/2180

Ray at work
Jul 19 '05 #2
Ray a wrote:

"Philipp Lenssen" <in**@outer-court.com> wrote in message
news:bp*************@ID-203055.news.uni-berlin.de...
There's no error message, just a continuous loading bar in my
IExplorer...

set fileSystem =
server.Createobject("Scripting.FileSystemObject")


http://www.aspfaq.com/2180


Wow. I can't believe it. That was exactly the cause. Thanks so much!
Jul 19 '05 #3

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

Similar topics

2
by: RickL | last post by:
I have an ASP application that uploads a specified file to the server. To retrieve the file, I simply assign the filepath and file to a hyperlink on the page. When you click "Save Target As" for...
0
by: F. Hall | last post by:
If I read a bitmap image from one file and save it to another the save operation is slow unless I draw on the image. In other words, Image inputImage = Image.FromFile( @"c:\temp\source.bmp" );...
3
by: Newbie | last post by:
I am trying to get the save/open dialog figured out. I am able open the save dialog but when I put in a file name (whatever.txt) and save the file does save with the name but it is blank. Below...
4
by: Jae | last post by:
I'm writing a web application that exports and imports excel files. The application gets a list of users and their info and displays it in a datagrid .The user then selects to save the file as a...
10
by: GJP | last post by:
Hello. Ive been asked to make my own notepade for college assignment. All ig going well, but i cant get the save to work. I can get Save a (shows dialog box), i can get it to just save too,...
5
by: Salad | last post by:
I have a textbox for storing the URL to a web page. I figured the person could simply copy the URL from IE and paste it into the text box. The client would like to have a more automated process. ...
6
by: Jim Lewis | last post by:
Pickling an instance of a class, gives "can't pickle instancemethod objects". What does this mean? How do I find the class method creating the problem?
5
by: Chris | last post by:
Why can pickle serialize references to functions, but not methods? Pickling a function serializes the function name, but pickling a staticmethod, classmethod, or instancemethod generates an...
2
by: Michele Simionato | last post by:
Can somebody explain what's happening with the following script? $ echo example.py import pickle class Example(object): def __init__(self, obj, registry): self._obj = obj self._registry =...
1
by: IceMan85 | last post by:
Hi to all, I have spent the whole morning trying, with no success to pickle an object that I have created. The error that I get is : Can't pickle 'SRE_Match' object: <_sre.SRE_Match object at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
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...
0
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...
0
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,...

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.