469,604 Members | 2,358 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,604 developers. It's quick & easy.

ASPNET access to network folders

What steps must I take to ensure that my application will be able to access
network folders. I want to only use the ASPNET account, but I am not sure
how this is done.

Thanks,
Brent
Nov 17 '05 #1
5 1536
Give the aspnet account the necessary permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:OI**************@TK2MSFTNGP11.phx.gbl...
What steps must I take to ensure that my application will be able to access network folders. I want to only use the ASPNET account, but I am not sure
how this is done.

Thanks,
Brent

Nov 17 '05 #2
Thanks Kevin,

However, I cannot add the ASPNET account as a user to a folder not existing
on the same machine as the application is running. Any ideas?

Thanks,
Brent
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
Give the aspnet account the necessary permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:OI**************@TK2MSFTNGP11.phx.gbl...
What steps must I take to ensure that my application will be able to

access
network folders. I want to only use the ASPNET account, but I am not sure how this is done.

Thanks,
Brent


Nov 17 '05 #3
You have two ways to handle this:
1. Create a Domain account and set your ASP.net site to run as the Domain
user instead of the local ASPNET user. Then, give the domain user access to
the share.

2. Impersonation In your web.config your can have the site "run as" a
different user that would have access to the network share in question.

If you do a search for Impersonation on google, you should be able to find
everything you need to know about how to make either of these solutions
work. If not, let me know and I can give you some samples. I don't have
them handly right this minute.

Michael

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:uy**************@TK2MSFTNGP11.phx.gbl...
Thanks Kevin,

However, I cannot add the ASPNET account as a user to a folder not existing on the same machine as the application is running. Any ideas?

Thanks,
Brent
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
Give the aspnet account the necessary permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:OI**************@TK2MSFTNGP11.phx.gbl...
What steps must I take to ensure that my application will be able to

access
network folders. I want to only use the ASPNET account, but I am not sure how this is done.

Thanks,
Brent



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
Nov 17 '05 #4
There's a couple of approaches,

1)Mirror accounts,
(a) change the password of the aspnet account on your server to
something you know of.

(b) Create an identical account on the machine with the shared folder on
it (eg aspnet) and
give it the exact same password.

(c) set the permissions for the folder with the account created on the
remote machine

(2) Change the account that is usede for the process or the unmanaged
thread.
(a) Change the accont used to start the asp.net worker process, this is
done in the
machine.config file.

--
Patrik L÷wendahl
cshrp.net - " Elegant code by witty programmers "
cornerstone.se - " IT Training for professionals "

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:uy**************@TK2MSFTNGP11.phx.gbl...
Thanks Kevin,

However, I cannot add the ASPNET account as a user to a folder not existing on the same machine as the application is running. Any ideas?

Thanks,
Brent
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
Give the aspnet account the necessary permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:OI**************@TK2MSFTNGP11.phx.gbl...
What steps must I take to ensure that my application will be able to

access
network folders. I want to only use the ASPNET account, but I am not sure how this is done.

Thanks,
Brent



Nov 17 '05 #5
SF
In addition to this, you can use a serviced component ... a good article is
on http://www.15seconds.com/issue/030926.htm

"Patrik L÷wendahl" <pa**************@csharpsweden.com> wrote in message
news:#R**************@TK2MSFTNGP09.phx.gbl...
There's a couple of approaches,

1)Mirror accounts,
(a) change the password of the aspnet account on your server to
something you know of.

(b) Create an identical account on the machine with the shared folder on it (eg aspnet) and
give it the exact same password.

(c) set the permissions for the folder with the account created on the
remote machine

(2) Change the account that is usede for the process or the unmanaged
thread.
(a) Change the accont used to start the asp.net worker process, this is done in the
machine.config file.

--
Patrik L÷wendahl
cshrp.net - " Elegant code by witty programmers "
cornerstone.se - " IT Training for professionals "

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:uy**************@TK2MSFTNGP11.phx.gbl...
Thanks Kevin,

However, I cannot add the ASPNET account as a user to a folder not

existing
on the same machine as the application is running. Any ideas?

Thanks,
Brent
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
Give the aspnet account the necessary permissions.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Brent Burkart" <Br***********@wvmb.com> wrote in message
news:OI**************@TK2MSFTNGP11.phx.gbl...
> What steps must I take to ensure that my application will be able to
access
> network folders. I want to only use the ASPNET account, but I am
not sure
> how this is done.
>
> Thanks,
> Brent
>
>



Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Matt Calhoon | last post: by
1 post views Thread by Christopher Beltran | last post: by
5 posts views Thread by Dave Kolb | last post: by
3 posts views Thread by Jiho Han | last post: by
1 post views Thread by James | last post: by
4 posts views Thread by Keith | last post: by
3 posts views Thread by Doctor Who | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.