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

running ASP.NET under a domain user

How do I get the ASP.NET processes running under a domain user, rather than
the standard ASP.NET user?

I have a COM dll that requires access to a network share. I'd rather run
the ASP.NET process under a domain user, rather than give the ASP.NET user
access to the share.

regards,
Bruce
Nov 18 '05 #1
4 1062
For your particular application you can use <identity> element in
web.config.
http://msdn.microsoft.com/library/de...itysection.asp
If you use impersonation, that should do it.

If you want to change something for ASP.NET's process, you need to look at
machine.config and <processModel> element.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"Bruce Whitehouse" <sk*******@yahoo.co.uk> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
How do I get the ASP.NET processes running under a domain user, rather than the standard ASP.NET user?

I have a COM dll that requires access to a network share. I'd rather run
the ASP.NET process under a domain user, rather than give the ASP.NET user
access to the share.

regards,
Bruce

Nov 18 '05 #2
Thanks Teemu!

Bruce
Nov 18 '05 #3
I've tried changing these settings and it doesn't seem to work.

Is there another way of doing this?

Bruce
Nov 18 '05 #4
We use the <identity> element in our web.config file and
it works great. When accessing SQL Server, we used to
have to either give the ASPNET account access or use SQL
Server authentication. Now we impersonate a special user
account and give it access only to what it needs. This
should also work for a COM component.

You can also set the identity of the COM component. We've
used this method as well. Create an account specifically
for the COM component and set its identity in Component
Services. That way ASPNET won't have access to your share
directly - it will have to use the COM component to gain
indirect access.

- Dave (MCP)
-----Original Message-----
I've tried changing these settings and it doesn't seem to work.
Is there another way of doing this?

Bruce
.

Nov 18 '05 #5

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

Similar topics

2
by: David Olive | last post by:
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by...
3
by: David Olive | last post by:
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by...
0
by: Rob Roberts | last post by:
I have developed an ASP.NET 2.0 application using localhost on my Windows XP workstation, and it all works fine there. I tried to copy it to my test web server, which is a domain controller...
4
by: Max2006 | last post by:
Hi, I am developing a web application on windows XP. A page within my application needs to access to SSRS running on the same machine. Once the web application tries to consume the SSRS web...
1
by: =?Utf-8?B?U3ludGF4IDM3NzA3?= | last post by:
I have found lots of people talking about this issue, but no one seems to have a solution. I could really use some help here. Has anyone seen this or have any ideas? I have been running the...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.