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

ASP.net can't write XML file!!


I can't Write to XML File using ASP.NET becouse my OS(win xp) tell me
that the user(account) that is ASP.net haven't the right to access the
file

--
ayham
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 9 '06 #1
3 1776
Hi,

ayham wrote:
I can't Write to XML File using ASP.NET becouse my OS(win xp) tell me
that the user(account) that is ASP.net haven't the right to access the
file
When you write to a file, you need to give to the user ASPNET for the
local machine write permissions to the folder in which you write.
Because IIS runs as a service, it is not running under the logged on
user, but it has its own username.

Use the Windows Security dialog to set the correct permissions.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Nov 9 '06 #2
hello again!

i am having a problem with writing to files from ASPNET and found
someone elses post which about the same topic. i am not clear how to
act on the proposed solution however.

in XP Pro which Windows security dialog should i be lookling for? the
one in IIS? Files/Folders in My file system do not show a security tab
(did i forget to tick some checkbox something during XP installation?)

thanks,
X

On Nov 9, 3:51 am, Laurent Bugnion <galasoft...@bluewin.chwrote:
Hi,

ayham wrote:
I can'tWriteto XML File using ASP.NET becouse my OS(winxp) tell me
that the user(account) that is ASP.net haven't the right to access the
fileWhen youwriteto a file, you need to give to the userASPNETfor the
local machinewritepermissionsto the folder in which youwrite.
Because IIS runs as a service, it is not running under the logged on
user, but it has its own username.

Use the Windows Security dialog to set the correctpermissions.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:http://www.galasoft-LB.ch
PhotoAlbum:http://www.galasoft-LB.ch/pictures
Support children in Calcutta:http://www.calcutta-espoir.ch
Dec 29 '06 #3
Hello,

First, check whether you had "Simple File Sharing" Enabled, if so first
disable that. (Default is Enabled)

To Disable you to open an explorer window and go to Tools -Options -View
and then scroll down to the last setting. If that is checked uncheck

And secondly it will be good if you have NTFS File System. Then you need to
give permission to Everyone or give Permission to IUSR_XXXX.

Hope this helps....

Thanks
D

"xamman" <xa******@yahoo.comwrote in message
news:11**********************@k21g2000cwa.googlegr oups.com...
hello again!

i am having a problem with writing to files from ASPNET and found
someone elses post which about the same topic. i am not clear how to
act on the proposed solution however.

in XP Pro which Windows security dialog should i be lookling for? the
one in IIS? Files/Folders in My file system do not show a security tab
(did i forget to tick some checkbox something during XP installation?)

thanks,
X

On Nov 9, 3:51 am, Laurent Bugnion <galasoft...@bluewin.chwrote:
>Hi,

ayham wrote:
I can'tWriteto XML File using ASP.NET becouse my OS(winxp) tell me
that the user(account) that is ASP.net haven't the right to access the
fileWhen youwriteto a file, you need to give to the userASPNETfor the
local machinewritepermissionsto the folder in which youwrite.
Because IIS runs as a service, it is not running under the logged on
user, but it has its own username.

Use the Windows Security dialog to set the correctpermissions.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:http://www.galasoft-LB.ch
PhotoAlbum:http://www.galasoft-LB.ch/pictures
Support children in Calcutta:http://www.calcutta-espoir.ch

Dec 30 '06 #4

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

Similar topics

2
by: Jeremy Bishop | last post by:
Hi, When I open a file for the second time (sequentially) i get the error error: junk after document element tA one-time opening and use of the file works fine, it's the second time where...
3
by: Aaron Brockhurst | last post by:
Hi Can anyone help? I cant get my php script to insert or delete records into a mysql table. I can view them all fine but that's about it. I've checked the user permissions on mysql and...
16
by: ben beroukhim | last post by:
I have huge number of legacy code which use standard files functions. I would like to pass a memory pointer rather than a FILE pointer. I am trying to use FILEs in the code to refer to memory...
0
by: Seth | last post by:
For some reason my service works fine except that it will create the file in my c drive, but will not write to the file. Sorry if this is a duplicate post, i have found some that ask the same...
1
by: Tim | last post by:
Hi, What I am trying to accomplish is to initiate remote desktop session from within my C# application to XP Pro machine NOT terminal services to a server. I have not found any way to do this...
2
by: TheReckter | last post by:
I am fairly new to ASP and wanted to output certain parts of an xml file directly to the page, I tried the following method however it did not work, any help in correcting this issue would be...
12
by: lalou89 | last post by:
Develop a simple text editor program. The program will show the user a menu of choices and will act according to his choice. Use functional decomposition to break the system into small functions that...
0
by: Swan | last post by:
Can anyone plz tell me,Can I write file on server using binary access,or it is only to write on local?(Actually I am creating OCX for Http File Upload Control in VB using API's.So for that I need to...
4
by: Bruno | last post by:
Hi! I have big .txt file which i want to read, process and write to another .txt file. I have done script for that, but im having problem with croatian characters (Š,Đ,Ž,Č,Ć). How can I...
1
by: =?Utf-8?B?Q29yeSBKLiBMYWlkbGF3LCBCZXlvbmQwMS5jb20= | last post by:
Hi, I am trying to learn how to write key events to the application event log. I create a new windows application (not ASP) and use the following code: My.Application.Log.WriteEntry("Please...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
0
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
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
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
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...

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.