473,503 Members | 972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1266
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
2711
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
2792
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
1038
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
1166
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
269
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
761
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
23972
by: Christine | last post by:
erver Error in '/test' Application. -------------------------------------------------------------------------------- There is not enough space on the disk. Description: An unhandled exception...
2
2733
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
1353
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...
0
7203
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
7089
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
7282
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
7339
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
5581
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,...
0
4678
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...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
389
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...

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.