Solved

File upload iis 7.5

Posted on 2014-04-25
3
388 Views
Last Modified: 2014-05-16
Hi

I have developed an application to upload files using vs2010. my folder is set in the applicaiton root directory "data". while running files are not getting uploaded.

         Dim saveLocation As String = Me.Page.Server.MapPath("..\Data" & "\" & fileName.ToString())
                inputFile.PostedFile.SaveAs(saveLocation)

please let me know what are the rigts required for the folder
regards
0
Comment
Question by:bmkdubai
3 Comments
 
LVL 17

Expert Comment

by:Emmanuel Adebayo
ID: 40024984
Hi,

You will need write or modify permission to the Data folder for the account that is running your application pool.

Regards
0
 

Author Comment

by:bmkdubai
ID: 40025324
hi
my application pool is default and network identity is networkservice.

please support
0
 
LVL 7

Accepted Solution

by:
Utkarsh Kulkarni earned 500 total points
ID: 40029584
There is nothing wrong with your Application pool. In your website, for this "Data" folder, give write / modify permission to IIS User.

If you are checking in VS2010, then give either full control permission to this folder for user
logged in.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question