Re: ASP.net can't write XML file!!



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" <xamman19@xxxxxxxxx> wrote in message
news:1167419253.255530.240530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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...@xxxxxxxxxx> wrote:
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



.



Relevant Pages

  • Re: Intranet Security
    ... Can you post every object that is assigned any permission on ... Microsoft MVP - Windows Security ... I have also tried moving the files to a folder on the IIS server. ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP.net cant write XML file!!
    ... someone elses post which about the same topic. ... fileWhen youwriteto a file, you need to give to the userASPNETfor the ... Because IIS runs as a service, it is not running under the logged on ... Use the Windows Security dialog to set the correctpermissions. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: security between serving files from a fileshare
    ... Microsoft MVP - Windows Security ... Any other ideas, as I can browse to the file in iis manager, yet I ... When entering username ...
    (microsoft.public.inetserver.iis.security)
  • Re: XP PRO and IIS 5.1
    ... There is a policy that limits local account use of blank ... > Microsoft MVP - Windows Security ... >> new server running win XP Pro with IIS 5.1 and can not access the webs as ...
    (microsoft.public.inetserver.iis.security)
  • Re: Access to Path Denied
    ... For example from my User account, if I try and write a file ... have permission. ... class deals with encoding a file so it cannot be read without the ...
    (microsoft.public.dotnet.languages.csharp)

Loading