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

Web application - writeing to disk

Hi!

What do I need to do if I want to write (with a stream) to file that is in a
root dir of Web application or any other file on the disk.

Thnx
Aug 2 '05 #1
6 1259
Budha,
What do I need to do if I want to write (with a stream) to file that is in
a root dir of Web application or any other file on the disk.

You mean on the same computer?

Cor
Aug 2 '05 #2
> You mean on the same computer?

Yes, on the same computer.
Aug 2 '05 #3
Try :
http://msdn.microsoft.com/library/de...TextToFile.asp

Or if you tried something what is the problem ?

---
Patrice
"budhA" <Iv********************@gmail.com> a écrit dans le message de
news:dc**********@ss405.t-com.hr...
Hi!

What do I need to do if I want to write (with a stream) to file that is in a root dir of Web application or any other file on the disk.

Thnx

Aug 2 '05 #4

"Patrice" <no****@nowhere.com> wrote in message
news:eb**************@TK2MSFTNGP12.phx.gbl...
Try :
http://msdn.microsoft.com/library/de...TextToFile.asp

Or if you tried something what is the problem ?


The problem is that when I open a stream to the file I can only read it and
not write to it (CanWrite prperty is set to false). I think that the problem
is with the premissions of the virtual dir where web app is, but I don't
know how to set those premissions in IIS (not exactly).
If I open a stream to the file with win app or something else that is not a
Web site (VS 2005 beta2) I can read and write but with web app I can't. Why?
Aug 2 '05 #5
Please always show us the whole picture. It's far easier to react to a
particular problem rather than to let us list all unrelated failures that
could arise...

The web app runs under the ASPNET account. You could :
- put the file in a directory made for this purpose
- set the NTFS file permission so that ASPNET (or the account you are using)
is allowed to write the content
- if under the web root, you may want to disable IIS access (clear the
"Read" checkbox in IIS for this directory security)

--

Patrice

"budhA" <Iv********************@gmail.com> a écrit dans le message de
news:dc**********@ss405.t-com.hr...

"Patrice" <no****@nowhere.com> wrote in message
news:eb**************@TK2MSFTNGP12.phx.gbl...
Try :
http://msdn.microsoft.com/library/de...TextToFile.asp
Or if you tried something what is the problem ?
The problem is that when I open a stream to the file I can only read it

and not write to it (CanWrite prperty is set to false). I think that the problem is with the premissions of the virtual dir where web app is, but I don't
know how to set those premissions in IIS (not exactly).
If I open a stream to the file with win app or something else that is not a Web site (VS 2005 beta2) I can read and write but with web app I can't. Why?

Aug 3 '05 #6
Thnx
Aug 3 '05 #7

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

Similar topics

8
by: Google Mike | last post by:
I need an Application object replacement. I was creating my own using shared memory -- shm* API in PHP. I was doing fine for 6 months until it just got too fat, I guess, and the RH9 Linux server...
43
by: Davey | last post by:
I am planning on developing an application which will involve skills that I have very little experience of - therefore I would appreciate comments on my initial design thoughts. Overview on...
0
by: Mike | last post by:
Hi All, I'm writing an application that is accepting data from possibly 100's of clients. The amount of data I get is around 3 or 4 KB per second per client. The data that is streamed from the...
1
by: R Hedges | last post by:
Hi there-I'm an AMATEUR VB.NET programmer, who has hacked together a small VB.NET application that can get information from remote machines using the System.Management namespace. MY APPLICATION...
6
by: budhA | last post by:
Hi! What do I need to do if I want to write (with a stream) to file that is in a root dir of Web application or any other file on the disk. Thnx
0
by: Fred Herring | last post by:
I am writing an application where I serialize and store in my database application files such as Media Player files of the form : c:\MedialFiles\MediaFile1.wmv When a client retrieves one of...
6
by: Christine | last post by:
erver Error in '/test' Application. -------------------------------------------------------------------------------- There is not enough space on the disk. Description: An unhandled exception...
2
by: jphelan | last post by:
Ever since I successfully applied some techniques for increasing the speed of my 17 meg. Application; it has only made me hunger for more. First, let me list what I have done so far: 1. Split...
1
by: suresh_nsnguys | last post by:
Hi Guys, I am working in a digital signage software where user can display ads in the LCD screen.MyApplication is running PHP & MySQL. Right Now users are accessing my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
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:
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...

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.