473,569 Members | 2,737 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 1274
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******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP12.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
2715
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 just started "losing its memory". I don't know -- perhaps I'm doing something wrong, perhaps it's my code, or perhaps there's a limitation on what...
43
2798
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 system: I'm not going to divulge the exact aims of the application but the purpose of it is to allow multiple client applications to retrieve data...
0
1039
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 client can last anywhere from a few seconds to maybe an hour. My question is, with all this data coming in what is the best way to write this...
1
1170
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 DOES WORK, but not quite in the way I want to. My management object is defined like this: Dim disk As New ManagementObject(myScope, New...
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
770
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 these files from the web server, I would like to know if it is possible to lauch the parent application Meader Player active x with the digitized file...
6
23982
by: Christine | last post by:
erver Error in '/test' Application. -------------------------------------------------------------------------------- There is not enough space on the disk. Description: An unhandled exception occurred during compilation using the CodeDomProvider 'Microsoft.VisualBasic.VBCodeProvider'. Please review the stack trace for more information about...
2
2742
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 the application and database into front and back-ends, 2. Increased the load-time of my application by "pre-loading my heaviest forms when the...
1
1361
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 Application through internet.But we planned to give 'local Hard disk' backup , where user can download my application to their local hard disk and...
0
7614
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...
0
7924
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. ...
0
8125
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6284
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...
0
3653
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...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
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 we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
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...

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.