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

disk mapping on web site

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

Nov 5 '07 #1
3 1721
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)...

--
Patrice

<ma******@hotmail.coma écrit dans le message de news:
11**********************@z9g2000hsf.googlegroups.c om...
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

Nov 5 '07 #2
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

On 5 Nov, 11:55, "Patrice" <http://www.chez.com/scribe/wrote:
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 thisis
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 needto
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)...

--
Patrice

<massi...@hotmail.coma écrit dans le message de news:
1194258525.032161.239...@z9g2000hsf.googlegroups.c om...
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

Nov 5 '07 #3
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

<ma******@hotmail.coma écrit dans le message de news:
11**********************@d55g2000hsg.googlegroups. com...
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

On 5 Nov, 11:55, "Patrice" <http://www.chez.com/scribe/wrote:
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)...

--
Patrice

<massi...@hotmail.coma écrit dans le message de news:
1194258525.032161.239...@z9g2000hsf.googlegroups.c om...
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


Nov 5 '07 #4

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

Similar topics

2
by: kevininstructor | last post by:
I created two classes called "site" and "Sites" which use 'BinaryFormatter' to load and save class information to a disk file. In my test application all works fine but when implementing into...
3
by: Elder Hyde | last post by:
I was reading this interview with Hejlsberg, when suddenly the conversation turned to O/R mapping. Hejlsberg talked as if he had had to design an O/R mapping for .NET (he said ".NET had each one of...
5
by: Tales Normando | last post by:
The title says it all. Anyone?
4
by: Zeeshan | last post by:
hi, i want to get the hard drive number for example if if have drive letter C it should tell me Disk number as 1 and suppose if i have another hard disk attach to my system having letter J, the by...
1
by: lawrence k | last post by:
I've a site where I've just installed a new version of phpMyAdmin (version 2.8.1). I can't get it to work. I'm getting this error: Warning: session_write_close(): write failed: Disk quota...
34
by: Tom | last post by:
I'd greatly appreciate advice and code snippets on how to create a ram disk within a C/C++ program. I also need to be able to determine the free space. Thanks in advance for any help.
0
by: Alan Dean | last post by:
Hi, I have a confusing problem. I have written a web application that uses a wildcard mapping to ..\v2.0.50727\aspnet_isapi.dll with HttpModules and HttpHandlers. All works well when I...
3
by: ary | last post by:
I try to create a weblog host site! in this case i can't use cache for every page because that cause to be my Server ram full of caching page. but if I can save cache in hard disk my problem...
10
by: gary0gilbert | last post by:
An unusual spin to this recurring disk or network error in a Terminal Server environment. Access 2000, Terminal Server 2000, file server is windows 2000. All users have a separate copy of the...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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...
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,...

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.