473,612 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

grant asp.net write access but still won't work

All.

I have a folder/files that I have added asp.net to have read/write/etc.
privlidges via the properties of the folder/files and security tab.
However, when I run my asp.net page, I still get that access is denied.

the path is c:\inetpub\app\ bin\folder

the "folder has a ton of files in it and every file in the folder must
be able to be opened and binary read by the asp.net worker process.

I tried setting read/write privlidges on the folder for asp.net and it
wouldn't work. Still got access denied. Then tried adding asp.net to a
few of the files and giving read/write and tried binary reading them
via my asp.net application and still no luck.

What must I do to allow all the files in this folder to be opened for
binary read and also to let asp.net write a binary file to the folder?

I'm no newbie at doing the simple task of granting asp.net write/read
access to files and folders via the properties/security tab under xp
pro iis5 which is what I am running along with .net 1.1. I do not need
instructions on how to do that since I have it covered. I do this often
enough at my job so am confused as to why this isn't working.

Any input will be greatly appreciated!

Justin

Nov 19 '05 #1
3 4379
Hi Frekster,

Are you using impersonation? If yes, then grant that user write access to
the folders.

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"frekster" wrote:
All.

I have a folder/files that I have added asp.net to have read/write/etc.
privlidges via the properties of the folder/files and security tab.
However, when I run my asp.net page, I still get that access is denied.

the path is c:\inetpub\app\ bin\folder

the "folder has a ton of files in it and every file in the folder must
be able to be opened and binary read by the asp.net worker process.

I tried setting read/write privlidges on the folder for asp.net and it
wouldn't work. Still got access denied. Then tried adding asp.net to a
few of the files and giving read/write and tried binary reading them
via my asp.net application and still no luck.

What must I do to allow all the files in this folder to be opened for
binary read and also to let asp.net write a binary file to the folder?

I'm no newbie at doing the simple task of granting asp.net write/read
access to files and folders via the properties/security tab under xp
pro iis5 which is what I am running along with .net 1.1. I do not need
instructions on how to do that since I have it covered. I do this often
enough at my job so am confused as to why this isn't working.

Any input will be greatly appreciated!

Justin

Nov 19 '05 #2
Hi.

Thank you for the post. I do not have ipersonate setup at all in
web.config. No identity impersonate settings are in the web.config file.
I've granted read/write to asp.net to the sounds folder and to the
capital.wav file mentioned in this error when I try to read the file via
my asp.net web application:

Exception Details: System.Unauthor izedAccessExcep tion: Access to the
path "f:\inetpub\www root\imageverif ication\bin\sou nds\capital.wav " is
denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has
a base process identity (typically {MACHINE}\ASPNE T on IIS 5 or Network
Service on IIS 6) that is used if the application is not impersonating.
If the
application is impersonating via <identity impersonate="tr ue"/>, the
identity will be the anonymous user (typically IUSR_MACHINENAM E) or the
authenticated
request user.

Any how, I am not using impersonate. This has me confused. Do you have
any other ideas/things I can try?
Regards,
Justin

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #3
Hi again.

Ok, I have this working now. I had read/write set on the folder and on
one file I had read and not write for the asp.net machine account. When
I set read and write for the file that I *only* needed to read to
asp.net machine account, it would open the file and read it.

My question is this... I have about 50 files in this folder that I need
asp.net to read in binary file access. Do I have to set read/write to
each individual file for the asp.net machine account or is there a way
to globally set read/write to all the files in a single folder for the
asp.net machine account?

I have the parent folder properties set to allow the asp.net machine
account to read, write, list folder contents, etc.

Is there a way to inherit this to all files in the folder so I don't
need to set read/write for the asp.net machine account on each file?

BTW it would be nice if Microsoft would come out with a utility to let
you see what permissions are set on a folder for all three security
models: you are dealing with asp.net permissions, iis permissions, and
ntfs permissions. That is a lot of different permissions and
documentation on the threee are not exactly, well, good?
Regards,
Justin

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #4

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

Similar topics

12
3915
by: | last post by:
I issued the mysql command Grant all on *.* to myid@localhost identified as "mypw"; and recieved the error message ERROR 1045: Access denied for user" '@localhost' (Using password: NO) I am running mysql on my own machine which is not networked.
15
3308
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
23
3189
by: Alberto | last post by:
An OUTSTANDING example of a rebuttal. Worth a glance. Rather long, OBVIOUSLY feel fee to dismiss it entirely if not interested. But this habit of the rebuttals must go to a stop (forgive odd english, which is NOT my native tongue), if you consider what TYPE of rebuttals we often see here. I am truly still impressed that persons here STILL make rebuttals and don't know the simplest courtesy guidelines.
6
4757
by: Nate Jones via DBMonster.com | last post by:
I hope this isn't to simple of a question, but google/deja/DB2 doc have not given me an answer yet. In Oracle, we have the ability to grant select to all tables at the user level. In DB2, this doesn't seem to be possible. We can grant by going into the control center, selecting the schema in the table section, and granting access to all tables. But this won't help us when any new tables are created.
0
1552
by: Carlitos | last post by:
Hi there, I do not have much experience nor knowledge about security in ASP.NET nor Windows, so I apologize if I sound naive in this question. I developed a web application and a DLL that the web application uses. This DLL moves files from the web server to a shared folder in a different server in the intranet. It seems ASPNET user account can move some files but not all types of files because it does not have enough permissions to...
6
9341
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty sure it is a permission issue because the script works when I point the browser directly at the .htm file on the c: drive: c:\inetpub\wwwroot\DemoSite\VbScriptTest.htm
2
1099
by: Andreas Zita | last post by:
Hi I have some space on a server host where I put my asp.net applications. However I (my app) doesn't seem to have write permissions to it's folders. I want to save some log-files ~Server.MapPath("log.xml") but I have no access. Can I configure my app directly from my own computer? by ftp? The app has MS Frontpage ext installed if that helps .. ? Or is the server admin the only one who can grant my app this access? Thanks for any help!
17
2480
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a thousand items and the accounting side will be used for hopefully many years so the entries are likely to be vast. The delema is what is best to use ase the DB engine, Access I have as part of Office 2002 or should I really be looking at SQL...
17
4402
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server database, just native jet database mdb created on Access 2003 (default 2000)...
0
8173
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8617
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8568
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8422
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6082
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5537
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4047
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1416
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.