error writing file to the network drive

Last post 08-03-2010, 4:49 AM by cesbart. 3 replies.
Sort Posts: Previous Next
  •  07-26-2010, 7:46 AM 62710

    error writing file to the network drive

    Hi,
     
    I have problem with saving files to the network drive.
    When I upload file I  get error: you do not heve permission to save file, although I added Everyone user with all permissons (read/write...) to this network drive. Could you tell me what should I do to solve this problem, what kind of user I should  add or what kind of permission  should I set to this network drive or maby I should change some settings in IIS.
    I will be grateful for any help.
  •  07-26-2010, 9:01 AM 62711 in reply to 62710

    Re: error writing file to the network drive

    ASPNET account does not have access to the network resources by default.  When uploading a file you should use the virtual folder pointing to UNC share.
     
    Please check the following article for details:
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-29-2010, 9:24 PM 62807 in reply to 62710

    Re: error writing file to the network drive

    Hi,
     
    Please check this post :
     

    Regards,
    Terry

  •  08-03-2010, 4:49 AM 63005 in reply to 62807

    Re: error writing file to the network drive

    Hi,
     
     Thanks for posts, I solved this problem.

    Here're the steps:

    • Step 1. Create a system user e.g. ForASPNET on the machine which hosts the ASP.NET application. (I created domain user e.g MyAccount)
    • Step 2. Grant the same permissions like ASP.NET built-in account Network Service. You could start the Visual Studio Command Prompt and run this command "aspnet_regiis -ga ForASPNET".(I used domain user e.g MyAccount)
    • Step 3. Create a system user in the shared server with the SAME name and password.(I used domain user e.g MyAccount)
    • Step 4. Grant the permissions to the shared file to the user ForASPNET. (MyAccount)
    • Step 5. Set the Identity as ForASPNET (MyAccount) in the ApplicationPool which the ASP.NET application is running under.(
      • Right click a specific ApplicationPool and choose "Advanced Settings".
      • Click the Identity and choose "Custom account".
      • Set the new created account.)
         
        For me works fine.
        Reggards,
        Bart
         
         
View as RSS news feed in XML