473,770 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

folder security

Hi all,
My Asp.Net application gives System.Unauthor izedAccessViola tion exception
when It tries to write a word document to a special folder I created for
storing word documents. It says ASPNET account does not have write access to
the folder. How can I give the ASPNET account the write access to this
folder?

Thanks.
Nov 18 '05 #1
5 1539
Right click on the folder, go to the security tab....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Nikhil Patel" <do*******@nosp aml.com> wrote in message
news:uq******** *****@TK2MSFTNG P10.phx.gbl...
Hi all,
My Asp.Net application gives System.Unauthor izedAccessViola tion
exception when It tries to write a word document to a special folder I
created for storing word documents. It says ASPNET account does not have
write access to the folder. How can I give the ASPNET account the write
access to this folder?

Thanks.

Nov 18 '05 #2
Hi Curt,
Thanks for the reply. But I don't have security tab. I am using Windows
XP. I have General, Sharing, Web Sharing and Customize tabs.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Right click on the folder, go to the security tab....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Nikhil Patel" <do*******@nosp aml.com> wrote in message
news:uq******** *****@TK2MSFTNG P10.phx.gbl...
Hi all,
My Asp.Net application gives System.Unauthor izedAccessViola tion
exception when It tries to write a word document to a special folder I
created for storing word documents. It says ASPNET account does not have
write access to the folder. How can I give the ASPNET account the write
access to this folder?

Thanks.


Nov 18 '05 #3
Hi,

You can set the security of the folder in Windows Explorer. Right-click it,
choose "Properties " and go to the "Security" tab. Then add the ASPNET user
(or the user with which the worker process executes - see in Task Manager
the column User Name for the w3wp.exe or aspnet_wp.exe process depending on
the windows and framework version, or the impersonated user if you use
impersonation) and give it the appropriate rights for the folder.

Hope this helps
Martin
"Nikhil Patel" <do*******@nosp aml.com> wrote in message
news:uq******** *****@TK2MSFTNG P10.phx.gbl...
Hi all,
My Asp.Net application gives System.Unauthor izedAccessViola tion exception when It tries to write a word document to a special folder I created for
storing word documents. It says ASPNET account does not have write access to the folder. How can I give the ASPNET account the write access to this
folder?

Thanks.

Nov 18 '05 #4
Sounds like you've got simple file sharing enabled. To disable it, follow
the steps outlined in the following KB article:
http://support.microsoft.com/default...b;EN-US;307874.

HTH,
Nicole
"Nikhil Patel" <do*******@nosp aml.com> wrote in message
news:OP******** ******@TK2MSFTN GP10.phx.gbl...
Hi Curt,
Thanks for the reply. But I don't have security tab. I am using Windows
XP. I have General, Sharing, Web Sharing and Customize tabs.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Right click on the folder, go to the security tab....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Nikhil Patel" <do*******@nosp aml.com> wrote in message
news:uq******** *****@TK2MSFTNG P10.phx.gbl...
Hi all,
My Asp.Net application gives System.Unauthor izedAccessViola tion
exception when It tries to write a word document to a special folder I
created for storing word documents. It says ASPNET account does not have
write access to the folder. How can I give the ASPNET account the write
access to this folder?

Thanks.



Nov 18 '05 #5
Hi Nicole,
After disabling simple file sharing I was able to give write access to
ASPNET. Thanks for your help.

-Nikhil

"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:uT******** *****@TK2MSFTNG P15.phx.gbl...
Sounds like you've got simple file sharing enabled. To disable it, follow
the steps outlined in the following KB article:
http://support.microsoft.com/default...b;EN-US;307874.

HTH,
Nicole
"Nikhil Patel" <do*******@nosp aml.com> wrote in message
news:OP******** ******@TK2MSFTN GP10.phx.gbl...
Hi Curt,
Thanks for the reply. But I don't have security tab. I am using Windows
XP. I have General, Sharing, Web Sharing and Customize tabs.

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Right click on the folder, go to the security tab....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Nikhil Patel" <do*******@nosp aml.com> wrote in message
news:uq******** *****@TK2MSFTNG P10.phx.gbl...
Hi all,
My Asp.Net application gives System.Unauthor izedAccessViola tion
exception when It tries to write a word document to a special folder I
created for storing word documents. It says ASPNET account does not
have write access to the folder. How can I give the ASPNET account the
write access to this folder?

Thanks.



Nov 18 '05 #6

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

Similar topics

10
4207
by: Nancy Drew | last post by:
hi all i want to build a trouble ticket system. i'd like to have a component written in vbscript watch a specific mail folder for income email (something like 'troubletickets@acme.com') the system should write the sender's email address, time received, and message body to sql server, return a new trouble ticket, etc. anybody know how to set this kind of thing up? tks
3
1690
by: scott | last post by:
I'm creating a tree menu that uses FSO to read folders, subfolders and files. I'd like for each folder to have capabilty of being either Level 1,2,3,4 or 5 security. The 5 Levels are my security levels with 5 being Admin. I'm looking for any advice on how to go about this. I was thinking of creating a hidden text file within each folder and storing the folders security level in it, then let asp read the text file as it builds my tree...
7
2215
by: Tom | last post by:
Can anyone give me any advice on how to secure a folder on a network server so that documents in the folder can only be opened through an Access database or by the database admin. I need to store MS Word docs in a folder on a network server. The database admin will save the docs to the folder. The docs must be available to Word automation out of a specific Access database and available to the database admin out of MS Word. Only users of...
2
2898
by: Jon L. Lovesky | last post by:
Hello all, I am attempting to access a remote folder from an asp.net application (all within the same domain). The application is configured for windows authentication in IIS and the asp.net worker process runs as the local ASP.NET account. When the application is about to access the remote folder I switch the security context to the remote user programmatically, then switch it back afterwards. When I run the application on my local...
2
5047
by: John Regan | last post by:
Hello All I am trying to find the owner of a file or folder on our network (Windows 2000 Server) using VB.Net and/or API. so I can search for Folders that don't follow our company's specified folder structure and naming conventions and then send a Net send message to those users telling them to rectify. The information I want to get is when you select the file/folder and then: Properties -> Security Tab -> Advanced Button -> Owner Tab ->...
5
13303
by: Mitchell S. Honnert | last post by:
Is there a way, given the full path of a folder on a network, that one can programatically tell if you have Read access to that folder? I have an application where the user is able to select a number of search folders using the standard dialog control. There shouldn't be an issue with the search folder being on a local drive or a network drive. But if you don't have Read access to the folder, there's trouble. The user can see the...
6
39973
by: Fred W. | last post by:
When my application starts I need to check folder permissions to ensure they have "Full Control" before I let them proceed on. How can I check this permission. Thank you, Fred
8
3872
by: paquer | last post by:
Database Users need to have Read/Write etc... permissions to the folder where the Database resides in order to create the lock file. I have read only users. I have set up the Shortcut that links to the 'Workgroup Info File' with permissions for said database. Within this 'WIF' File I have "Read Only" user's who are only provided access to the DB only so they can view the data. Now if I give them full permissions to the folder where...
1
1558
by: gnewsgroup | last post by:
OK, I know this sounds stupid, but I have been playing with this for hours, and could not get a clue. In my asp.net 2.0 web application, I generate charts on the fly. I would like to save the charts png images in a particular folder. So, I created a folder ChartImages under the root of my web application. Whenever I run the web application, I get a folder access is denied error.
0
9618
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
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
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
8933
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...
0
6710
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
5354
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
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.