473,769 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET application cannot access network drive



My ASP.NET application needs read/write permissions for drive "Z:",
which is mapped to my Linksys Gigadrive (Network Attached Storage...if
anyone is familiar with that).

If I configure the Gigadrive with "Guest" access rights, then everything
works fine, BUT this leaves the drive vulnerable to everyone/everything
including network viruses. Lately, my drive has had several attacks by
the Lovegate virus.

Eliminating such attacks requires making my drive private, meaning I
must remove "Guest" access rights and only allow logged-in users to
access the drive through the ASP.NET applicaiton.

The problem is that without "guest" access rights, the ASP.NET
application itself cannot access the drive!

Is my ASP.NET application a "user" that I must add to the list of
priviledged users on the Gigadrive? Well, I tried adding users "ASPNET"
and "IUSR_MyCompute r" to the Gigadrive, but it didnt seem to work.

Again, if I allow the "Everyone" group (which includes the user "Guest")
to have persmission to the drive, then everything works.

Can someone please help me?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
3 10585
I believe that giving permissions to ASPNET (assuming you're using the
default settings) is who needs the permissions. Drive mappings are user
specific so not only do you need to have Z mapped to the share, but the
ASPNET user has to have it mapped as well. I don't know if this is your
problem but this has bitten me in the past.

Also, you could try using a UNC path to access the drive which wouldn't
require a drive mapping.

Hope this helps.

Jeff Trotman
Westglenn Software
"James N" <an*******@devd ex.com> wrote in message
news:eu******** ******@TK2MSFTN GP10.phx.gbl...


My ASP.NET application needs read/write permissions for drive "Z:",
which is mapped to my Linksys Gigadrive (Network Attached Storage...if
anyone is familiar with that).

If I configure the Gigadrive with "Guest" access rights, then everything
works fine, BUT this leaves the drive vulnerable to everyone/everything
including network viruses. Lately, my drive has had several attacks by
the Lovegate virus.

Eliminating such attacks requires making my drive private, meaning I
must remove "Guest" access rights and only allow logged-in users to
access the drive through the ASP.NET applicaiton.

The problem is that without "guest" access rights, the ASP.NET
application itself cannot access the drive!

Is my ASP.NET application a "user" that I must add to the list of
priviledged users on the Gigadrive? Well, I tried adding users "ASPNET"
and "IUSR_MyCompute r" to the Gigadrive, but it didnt seem to work.

Again, if I allow the "Everyone" group (which includes the user "Guest")
to have persmission to the drive, then everything works.

Can someone please help me?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #2
Jeff,

Im not sure what you mean when you said "the ASPNET user has to have it
mapped as well". Do you mean this:

Under "my computer" right-click the mapped drive and select
"properties ". On the security tab, add "ASPNET" to the list of users?

Well, I tried doing that but it does not allow me to modify the list.
Currently, I have 3 users/roles: administrator(N ASDRIVE\adminis trator),
Everyone, everyone(NASDRI VE\everyone). I checked the "full control"
option for all of them. However, when I click "apply", all the
checkboxes become unchecked again. Only the administrator still has
full control ( as how it was initially ).

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
I was playing around with the NAS a little more and I notice that
whenever I create a new user with the name "aspnet", I receive the same
error: "Could not find a part of the path 'z:\'". The odd thing is even
though "aspnet" is a member of the "everyone" group in NAS, and that the
"everyone" group does have R/W access to the share folder, the
application is still not able to write to the folder. Now if I delete
the "aspnet" user altogether, everything works like normal (where
"everyone" has access).

By the way, for your info (but im sure everyone here probably knows this
already) "ASPNET" is actually the user account that the asp.net worker
process (aspnet_wp.exe) is configured to runs as in IIS/windows. There
seems to be some correlation, but I just dont know exactly what. If
this info has shedded some light on this problem, please let me know.
THanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

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

Similar topics

1
3684
by: | last post by:
My ASP.NET application needs read/write permissions for drive "Z:", which is mapped to my Linksys Gigadrive (Network Attached Storage...if anyone is familiar with that). If I configure the Gigadrive with "Guest" access rights, then everything works fine, BUT this leaves the drive vulnerable to everyone/everything including network viruses. Lately, my drive has had several attacks by the Lovegate virus. Eliminating such attacks requires...
5
488
by: Bob L. | last post by:
Hi everyone, I have two small applications I have written that I am trying run from a network directory. Both applications have a dependency on another assembly (.dll), and I have .NET security wide open. One application is dependent on an interop assembly (Interop.IWshRuntimeLibrary.dll), and it works fine. The other application depends on three assemblies that I have written, and although the executable starts successfully, as soon as...
3
1567
by: Andy Bates | last post by:
Hi - I have developed a .NET WinForms application and will be looking to write an installer shortly. I'm a bit concerned regarding security. If the application is installed to the local harddisk, then I don't see a problem as that will inherit full trust; but if the user installs the application to a network drive then I envisage that the default rights will prevent the application from running.
4
6534
by: Steve B. | last post by:
I think a user exited my local application incorrectly and now I can't compile a new version of the application to the public network without getting a "in use" error message. Also, can't rename or delete the exe file/directory without "access denied" How do I find out who/what is using the exe on my local network? How can I kill the exe process because I don't see it on my machine? How can I prevent this application error from occuring...
5
2382
by: | last post by:
I've created a small vb.net application which uses the Data Access Application Block to access a SQL Server 2000 database. The application works fine on the machine with the development environment (Windows 2K) but I am unable to get it to work on two other machines (Windows XP machines). When I try running the application on these machines I get a message box, after some delay, that says "Application has generated an exception that could...
8
6047
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is there a way I can compile the application such that it won't even attempt to launch without correct permissions instead of just crashing? Thanks for any help. -Mike
4
6332
by: Rick | last post by:
I have a VB.Net 2005 application that I am publishing to a network file server. The app reads an xml file that has some database connection information in it. This xml file is located in the same folder as the executable. The problem is when I double click on the appname.application on the server the program can't find the xml file because the Application.StartupPath is: C:\Documents and Settings\UserName\Local Settings\Apps\2.0\...
2
2070
by: Dawoodi Bohra | last post by:
VPN connected but cannot map folders on my computer. I am trying to connect to our headquarters server using VPN (windows XP). I am able to successfully connect to the server (passes authentication) but am not able to map network drive on my computer. I was able to map the network drive on my colleague's computer and I successfully installed the application and his computer is working flawlessly.
7
4561
by: DanZaMan | last post by:
Just a query about how clever access is, I'm using access 97. When using a "split" database with a separate front-end and with the data file on a separate server on the network how does access handle the data; Does it transfer all the data across the network and process it locally on the front end or does it process it on the server the data file is held on? If I put my queries in the access data file on the server would this result...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10050
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9999
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.