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

ASP.NET User Permissions

Is the following assumption correct?

-ASP.NET user does not see the local drives I have mapped

If so how can I get it to notice the mapped drives? Do I need to change the
user in the machine.config?

Thanks
Chris
Nov 18 '05 #1
3 1172
Mapped drives are per user, and the ASPNET account is not your user account
so it won't see them. Can you just use UNC paths? (\\server\share)

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Chris" <cf@NoSpamzieQuotepro.com> wrote in message
news:uG**************@TK2MSFTNGP11.phx.gbl...
Is the following assumption correct?

-ASP.NET user does not see the local drives I have mapped

If so how can I get it to notice the mapped drives? Do I need to change
the
user in the machine.config?

Thanks
Chris

Nov 18 '05 #2
Actually it works ok on my server, but when I try to run it on my local
machine with mapped drives to mirror the server (for debugging purposes) I'm
having the problem. The drive mappings come out of a database so I don't
want to change them. I was hoping I could change something on my local
machine so that the ASP.NET user would run as me. This isn't for a
production thing, it's for debugging.

Thanks
Chris

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
Mapped drives are per user, and the ASPNET account is not your user account so it won't see them. Can you just use UNC paths? (\\server\share)

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Chris" <cf@NoSpamzieQuotepro.com> wrote in message
news:uG**************@TK2MSFTNGP11.phx.gbl...
Is the following assumption correct?

-ASP.NET user does not see the local drives I have mapped

If so how can I get it to notice the mapped drives? Do I need to change
the
user in the machine.config?

Thanks
Chris


Nov 18 '05 #3
Yes, you can change the account that the aspnet_wp process runs under in the
machine.config. Look for the processModel element, and you can edit the
userName and password attributes. If you want to encrypt them (so you don't
have your user/pass in plain text) you can use the aspnet_setreg.exe tool.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Chris" <cf@NoSpamzieQuotepro.com> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
Actually it works ok on my server, but when I try to run it on my local
machine with mapped drives to mirror the server (for debugging purposes)
I'm
having the problem. The drive mappings come out of a database so I don't
want to change them. I was hoping I could change something on my local
machine so that the ASP.NET user would run as me. This isn't for a
production thing, it's for debugging.

Thanks
Chris

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:OK**************@tk2msftngp13.phx.gbl...
Mapped drives are per user, and the ASPNET account is not your user

account
so it won't see them. Can you just use UNC paths? (\\server\share)

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Chris" <cf@NoSpamzieQuotepro.com> wrote in message
news:uG**************@TK2MSFTNGP11.phx.gbl...
> Is the following assumption correct?
>
> -ASP.NET user does not see the local drives I have mapped
>
> If so how can I get it to notice the mapped drives? Do I need to
> change
> the
> user in the machine.config?
>
> Thanks
> Chris
>
>



Nov 18 '05 #4

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

Similar topics

3
by: dan glenn | last post by:
(PHP 4.3.4) THIS IS DRIVING ME NUTS! I have a website where I offer members their own bit of webspace to use and am coding a very simple 'filemanager' that allows a user to upload, delete, and...
2
by: gudia | last post by:
How would I, using a sql script, copy permissions assigned to a user or a role in one or more databases to another user or a role in their respective databases? Help appreciated
3
by: teddysnips | last post by:
Currently studying for 70-229. I'm trying to understand how security for users is managed in SQL Server. I've been using SQL Server for a few years now, but without investigating the bits that...
3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
1
by: Angelo | last post by:
I have a user (john.doe) as a member of a group (MyGroup). I have assigned group permission to view and run the queries of that db but then when I log in with that user, I still can't access the...
11
by: Marcelo López | last post by:
I need to create a folder in the file system owned by an special user created by my application. The idea is that only my app will have permissions to delete and create files on that folder. My...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
6
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data...
8
by: Bernard Lebel | last post by:
Hello, I would like to know if there is a way to run a Python file under a different user account than the one logged in. Allow me to explain. There are a bunch of people here, they are "basic...
0
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.