473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to allow my ASPNET application to create a file?

SWu
Hi all

Could someone tell me how to give my app permission to create a file in a
subfolder? At the moment, I am getting 'Access to the path
"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.p df" is denied'.

Any help anyone can give me urgently would be greatly appreciated.

Thanks,
Stephen
Nov 18 '05 #1
4 2170
The easiest thing would be to give ASPNET user
permissions that folder. If you're ok with that from a
security point of view, then it's a good solution for you.
Thanks
-----Original Message-----
Hi all

Could someone tell me how to give my app permission to create a file in asubfolder? At the moment, I am getting 'Access to the path"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pd f" is denied'.
Any help anyone can give me urgently would be greatly appreciated.
Thanks,
Stephen
.

Nov 18 '05 #2
SWu
thanks, but it's not working for me.

I went to Internet Services Manager console (I am using Win XP Pro), opened
properties for that particular folder, added "Write" permission on the
Directory tab, tried that but didn't work.

Then went to Directory Security (even though I didn't think this was where I
needed to be), saw that it allowed Anonymous Access and changed the user
that it uses to ASPNET but that didn't work either.

Do you (or anyone) have any other suggestions, please?

thanks

<an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
The easiest thing would be to give ASPNET user
permissions that folder. If you're ok with that from a
security point of view, then it's a good solution for you.
Thanks
-----Original Message-----
Hi all

Could someone tell me how to give my app permission to

create a file in a
subfolder? At the moment, I am getting 'Access to the

path
"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pd f" is

denied'.

Any help anyone can give me urgently would be greatly

appreciated.

Thanks,
Stephen
.

Nov 18 '05 #3
Well I'm not sure why that didn't work. It should have worked assuming it's
a local drive.
You might want to try using impersonation so you're running under a user
account that has the necessary permissions. (Try setting it to your
username & pw for initial testing purposes.)
Here's more info:
http://msdn.microsoft.com/library/de...ersonation.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"SWu" <sw@rgr.com.au> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
thanks, but it's not working for me.

I went to Internet Services Manager console (I am using Win XP Pro), opened properties for that particular folder, added "Write" permission on the
Directory tab, tried that but didn't work.

Then went to Directory Security (even though I didn't think this was where I needed to be), saw that it allowed Anonymous Access and changed the user
that it uses to ASPNET but that didn't work either.

Do you (or anyone) have any other suggestions, please?

thanks

<an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
The easiest thing would be to give ASPNET user
permissions that folder. If you're ok with that from a
security point of view, then it's a good solution for you.
Thanks
-----Original Message-----
Hi all

Could someone tell me how to give my app permission to

create a file in a
subfolder? At the moment, I am getting 'Access to the

path
"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pd f" is

denied'.

Any help anyone can give me urgently would be greatly

appreciated.

Thanks,
Stephen
.


Nov 18 '05 #4
Permission need to be set at the directory/file level using explorer. You're
using IIS Manager :)

--
Shiv R. Kumar
http://www.matlus.com
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: roger | last post by:
I've created a web setup project for my aspnet app, and added a web folder item "tmp" to the File System editor under the web application folder. (My app uses this folder for generating image...
1
by: Luther Miller | last post by:
I've created a web setup project that works great for installing an ASP.NET application to a virtual directory on a server. I'd like to be able to use the same setup program to install multiple...
5
by: Dave Kolb | last post by:
Is there any other solution for an ASPNET application to access network resources other than running as SYSTEM, using delegation (a nightmare to get to work) or the COM+ solution? I cannot seem to...
2
by: Hari | last post by:
Hi I have an ASP.NET application that writes to a log file in a directory outside the webapp directory (e.g. c:\program files\myapp\logs). OS is Windows 2003 If I see the list of users in the...
3
by: Michael Tkachev | last post by:
Hello, I need to create an "Excel" file in the ASP.net. But a security system doesn't allow to do it. What can I do? There is an exception heppens when I try to execute the following row: ...
6
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data...
0
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc ...
4
by: Jon Paal | last post by:
how does this get resolved ??? "Cannot open user default database. Login failed. Login failed for user 'machinename\ASPNET'. "
16
by: Mich | last post by:
Hi, i'm building an web application for anonymous users. They can take a look in the website, nothing more. In order to perform other actions, the anonymous user must be logged. So i create an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.