Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2006

Tip: Looking for answers? Try searching our database.

ASP.net can't write XML file!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ayham - 08 Nov 2006 18:53 GMT
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
Laurent Bugnion - 09 Nov 2006 02:51 GMT
Hi,

> 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
Signature

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

xamman - 29 Dec 2006 19:07 GMT
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

> Hi,
>
[quoted text clipped - 14 lines]
> PhotoAlbum:http://www.galasoft-LB.ch/pictures
> Support children in Calcutta:http://www.calcutta-espoir.ch
Dhanraj K.S - 30 Dec 2006 10:50 GMT
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

> hello again!
>
[quoted text clipped - 27 lines]
>> PhotoAlbum:http://www.galasoft-LB.ch/pictures
>> Support children in Calcutta:http://www.calcutta-espoir.ch

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.