disk mapping on web site

M

massi183

Hi!

I have a problem.

I created a new "web site" with visual studio 2005 (asp net, default
language vb).
I need to move file from the server where there is my "web site" to
another disk, mapped into the server.

I try to show an example

c:manager\ --> disk and folder into the server, where i created my
"web site"
p:\ --> disk where i need to move some files, is mapped into the
server but is another server.

I need map the disk p in my project, because i need move file from z
to p.

I hope to have explane clear my problem.

Thanks for yours help.

Massimo
 
P

Patrice

Hi,

My understanding is that your web application needs to move files (not
crystal clear as you talk also about VS but my understanding is that this is
not a deployment issue but that you need to do that inside your web
application and it would be much less problematic if it was just a
deployment issue).

I suggest to always use UNC names (\\server\myshare) instead.

Keep in mind that mapped drives are tied to the account so you would need to
define mapped drives for the account under which your ASP.NET application
runs (and AFAIK this could be tricky depending on the account that is
used)...
 
M

massi183

Thanks for your answer.
So for you it's enough map the disk with the username of the account
application (in my case ASPNET, i got it with
system.enviroment.username) and after i can move files?
I ask you again for to be sure, because i need to ask an authorization
for permit the user ASPNET into the other server.

Thanks again.

Massimo
 
P

Patrice

Not sure what you means by "map the disk with the username".

What I meant is that instead of using a mapped drive you should use directly
the \\server\share notation (the location to which you would map the drive).
This way you precisely don't have to map a drive letter to this location for
a particular account which is AFAIK error prone and in some cases difficult
(for example if the account is a service account, the profile for this
account is not loaded and you would need to have those mapped drive stored
in the default account or something similar).

So in short just use a name such as \\server\share rather than using a drive
letter you would have to map.

Of course whatever the method is, the account under which your app runs,
needs the proper security (but this is always true regardless of how you
access this location).

--
Patrice

<[email protected]> a écrit dans le message de (e-mail address removed)...
Thanks for your answer.
So for you it's enough map the disk with the username of the account
application (in my case ASPNET, i got it with
system.enviroment.username) and after i can move files?
I ask you again for to be sure, because i need to ask an authorization
for permit the user ASPNET into the other server.

Thanks again.

Massimo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top