Server can't create, write, or modify files

Last post 07-22-2008 9:35 AM by jeff@zina.com. 8 replies.

Sort Posts:

  • Server can't create, write, or modify files

    04-20-2008, 11:19 PM

    Hello,

    I have a windows 2003 web edition dedicated server with IIS 6.0.

    My application programs on my home (local) computer work just fine using ASP.NET Development Server. My application programs can create, write, and modify files with out generating any errors.

    My application programs on my server can NOT create, write, or modify files.

    Can anybody show me step by step what I need to modify on my server. I can connect to my server using remote desktop.

     Thanks!

    Steve

     

     

     

  • Re: Server can't create, write, or modify files

    04-20-2008, 11:55 PM

    The server security must be different, you need to change the user running IIS or the security of the folder for the user running IIS to be able to write/read.

    Cheers
    Al
    My Blog
    GeoTwitter.NET
    Please click on 'Mark as Answer' if this post answered your question!
  • Re: Server can't create, write, or modify files

    04-21-2008, 6:19 AM

    Can you please explain in detail.

     Thanks

    Steve

  • Re: Server can't create, write, or modify files

    04-21-2008, 9:26 AM

    Steve Mracek:
    Can you please explain in detail.

    Not really.  We have no idea what your system is set for, what specific errors you're having, what accounts you're running under or what your application is trying to do.  For help with setting IIS permissions, see www.iis.net.  For help with setting Windows NTFS permissions, check your favorite Windows administration resource.  Make sure you understand what account your application is operating under in IIS (the ASP.NET process account, normally NETWORK SERVICE) versus the account in the development server (the logged in user, often a local administrator).  Make sure your permission changes don't expose you to security risks beyond your needs.  A guess would be you need to allow the NETWORK SERVICE account MODIFY access to the files/folders you're having problems with.  Those are NTFS permissions.  If you are not the server administrator, check with whomever is for help.

    Jeff

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
    Filed under:
  • Re: Server can't create, write, or modify files

    04-22-2008, 1:16 AM

    Well put it, security in a server you own is always a pain, something is easier to go with a hosting company for that. Otheriwse is important to check the IIS and the file structure for security. I know the pain that Windows 2003 introduced.

    Cheers
    Al
    My Blog
    GeoTwitter.NET
    Please click on 'Mark as Answer' if this post answered your question!
  • Re: Server can't create, write, or modify files

    07-07-2008, 10:01 AM

    To create, write, or modify files  on server you need to be an Administrator user to change file permissions.

    1. Start Windows Explorer (not the IIS Manager) and find the   YourWebApplicationVirtualDirectory   directory that you are using. If you are using a virtual directory, then you will typically use the YourWebApplicationVirtualDirectory   installation directory, eg: C:\inetpub\wwwroot\YourWebApplicationVirtualDirectory\
      If you have copied your site to your server web folder, then you will typically be using a directory like this: \inetpub\wwwroot\YourWebApplicationVirtualDirectory\
    2. Go up a directory level and right-click on YourWebApplicationVirtualDirectory   and click on Properties. Select the Security tab - which should look like this in Windows Server 2003:

       

      In Windows Explorer, show the properties for the 'findinsite' folder and check the settings in the Security tab
    3. You now need to add a new set of permissions for two user names: ASPNET and IIS_WPG. Click on Add... in the Security tab and enter ASPNET in the following box, then press OK. Then press Add... again to add IIS_WPG.

       

      Add a new set of permissions for users ASPNET and IIS_WPG
    4. Still in the Security tab, select ASPNET and IIS_WPG in turn and check the "Write" permission box in the "Allow" column:

     

    Thanks and Regards,
    Mahesh | Encodex Technologies India Pvt. Ltd.
    www.encodexindia.com

    Please Mark as answer if your problem got solved , because that may help other.
  • Re: Server can't create, write, or modify files

    07-17-2008, 1:00 AM
    • Loading...
    • you_rock
    • Joined on 07-17-2008, 2:11 AM
    • Posts 65

    how about the setting of the user permission? Have you enabled the read and write permission for the IIS_WPG user?

  • Re: Server can't create, write, or modify files

    07-21-2008, 5:14 PM
    • Loading...
    • bfr
    • Joined on 07-14-2008, 3:41 PM
    • Posts 3

    Is there any way to do this programatically using a custom action from a Web Setup project?

  • Re: Server can't create, write, or modify files

    07-22-2008, 9:35 AM

    bfr:
    Is there any way to do this programatically using a custom action from a Web Setup project?

    Probably want to start a new thread on this in the Web Setup Project forum, under Visual Studio here.

    Jeff

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
Page 1 of 1 (9 items)
Microsoft Communities
Page view counter