473,327 Members | 2,094 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,327 software developers and data experts.

folder security

Hi all,
My Asp.Net application gives System.UnauthorizedAccessViolation 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 1519
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*******@nospaml.com> wrote in message
news:uq*************@TK2MSFTNGP10.phx.gbl...
Hi all,
My Asp.Net application gives System.UnauthorizedAccessViolation
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_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP10.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*******@nospaml.com> wrote in message
news:uq*************@TK2MSFTNGP10.phx.gbl...
Hi all,
My Asp.Net application gives System.UnauthorizedAccessViolation
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*******@nospaml.com> wrote in message
news:uq*************@TK2MSFTNGP10.phx.gbl...
Hi all,
My Asp.Net application gives System.UnauthorizedAccessViolation 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*******@nospaml.com> wrote in message
news:OP**************@TK2MSFTNGP10.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_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP10.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*******@nospaml.com> wrote in message
news:uq*************@TK2MSFTNGP10.phx.gbl...
Hi all,
My Asp.Net application gives System.UnauthorizedAccessViolation
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*************@TK2MSFTNGP15.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*******@nospaml.com> wrote in message
news:OP**************@TK2MSFTNGP10.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_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP10.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*******@nospaml.com> wrote in message
news:uq*************@TK2MSFTNGP10.phx.gbl...
Hi all,
My Asp.Net application gives System.UnauthorizedAccessViolation
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
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...
3
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...
7
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...
2
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...
2
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...
5
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...
6
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
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...
1
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.