473,386 Members | 1,819 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,386 software developers and data experts.

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 1718
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat...
1
by: Christopher Beltran | last post by:
Hello there, we have an intranet that uses the ASPNET Account to access our internal network folders and drives. Several of our board members and other external people would like to access these...
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...
3
by: Jiho Han | last post by:
Should ASPNET user belong to the local Users group? I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors. For example, I have my IIS...
1
by: James | last post by:
What folders should the ASPNET user have permissions for, & what should they be? I keep getting 'Access Denied' or 'Server Access Denied' errors. I have given the ASPNET user Read & Execute...
4
by: Keith | last post by:
I have a small ASP.NET app that someone designed which I need to run on our server. The server is Windows 2000 Server and has the .NET Framework installed. How can I give ASP.NET permission to...
3
by: Doctor Who | last post by:
I am running a Windows 2003 Server w/Framework 1.1 loaded. We have built a ..NET 2003 app and it requires that ASPNET be assigned permissions to several folders and servcies. The ASPNET account...
7
by: torus | last post by:
Is the aspnet account called "aspnet" for all non-English versions of Windows and IIS?
25
by: p byers | last post by:
Good Morning Folks I have a LAN Among the several connections to it are the following four devices: A MAXSTOR network Storage Device A PC running Microsoft Windows 2000 Server 5.0.2195 (SP4) A...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
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,...

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.