473,511 Members | 16,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Network Security

I have a network drive that I need to give my asp.net program access
to. I am not allowed to use the regulat aspnet user account. Is there
any way I can create a user account or use mine within the program to
gain access to this drive?
Nov 18 '05 #1
3 1058
There are a couple of ways to handle this.

Easiest: Give ASP.NET rights. You cannot do this and it is not a wise idea
regardless, as it opens a security hole.

Easy, but a bit time consuming: Create a .NET assembly that uses Component
Services and place in COM+. You can then assign a user that the component
works under. This is simple as long as it does not depend on other
assemblies, as you may end up putting them in the GAC to make it work. If
assemblies, like your app, call on the COM+ assembly, you are fine.

Harder: Set up an identity for the thread that accesses the directory.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Michael" <cm********@yahoo.com> wrote in message
news:7e************************@posting.google.com ...
I have a network drive that I need to give my asp.net program access
to. I am not allowed to use the regulat aspnet user account. Is there
any way I can create a user account or use mine within the program to
gain access to this drive?

Nov 18 '05 #2
Rak
Use impersonation to run the application under a different use

http://msdn.microsoft.com/library/de...personation.as
Nov 18 '05 #3
You are in the wrong newsgroup to start with. There is a group--
aspnet.security. Anyway look at this article and you should have everything
you need. I recently implemented Network access security architecture with
Mirrored Account. Be sure to check all the requirements.

http://msdn.microsoft.com/library/de...SecNetch08.asp

Prodip

"Michael" <cm********@yahoo.com> wrote in message
news:7e************************@posting.google.com ...
I have a network drive that I need to give my asp.net program access
to. I am not allowed to use the regulat aspnet user account. Is there
any way I can create a user account or use mine within the program to
gain access to this drive?

Nov 18 '05 #4

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

Similar topics

3
3618
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore...
3
7188
by: Stanley J, Mroczek | last post by:
My disk was replaced and i reload all my software. I think that i named my computer best-si-01 instead of BEST-SI-01 and thats my error? Login failed for user 'NT AUTHORITY\NETWORK SERVICE'....
4
1928
by: Boris | last post by:
I observe the following strange behavior of my application. Let say we have managed application MyApp.exe which depend on a few assemblies MyAssembly1.dll, MyAssembly2.dll and MyAssembly3.dll. The...
5
3089
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
6532
by: Uday Deo | last post by:
Hi everyone, My coworker has a simple desktop app created in VB.NET. He compiled it and posted on the network drive. When we try to run it from it's network location, it generates unhandled...
5
13251
by: Mitchell S. Honnert | last post by:
Is there a way, given the full path of a folder on a network, that one can programatically tell if you have Read access to that folder? I have an application where the user is able to select a...
2
7964
by: Jerad Rose | last post by:
I have a fairly simple C# console app which copies files from a network folder to a local folder. When the app resides on my local C: drive, it runs just fine. However, when the app resides on a...
2
2413
by: Michael | last post by:
We have an ASP.NET 2.0 web application running on a Windows 2003 domain controller. Part of that application needs to read and write files from and to a network share ( living on a MAC Xserveraid)...
6
2945
by: tendim | last post by:
G'day group. Currently our organization us using VB6 based applications, and I am trying to push forward and migrate some of the smaller things to VB.NET, eventually migrating all applications...
1
7849
by: shriil | last post by:
Hi I am facing a problem with regard to opening of Access Databases, resident on pcs of my office network connected thru LAN, from my machine on the network. The folders in which these...
0
7242
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
7353
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
7418
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...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5063
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...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.