472,363 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,363 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 1634
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.