Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

docmd.close 2585, WWWXXXAPC, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text, how to setup procmail html2text, WWWXXXAPC., XXXCNZZZ

Links

XODOX
Impressum

#1: Access Drive Mapped to a Network Share

Posted on 2008-04-23 23:14:00 by jerryed

I am trying to accesss a Mapped Drive from my asp.net code running on IIS 6.0.

I am using a FileUpload control and fileUpload.SaveAs() to save the file to
the server. I want to save the file to a mapped drive that is mapped to a
share on the network. When I save to "C:\temp\myFile.txt it works but when I
save to Z:\temp\myFile.txt is will not work. I also want to copy, delete and
move these files.
I have found some pages on the net that mention this but none of the fixes
work.

Any help.

Thank you
--
Jerry

Report this message

#2: Re: Access Drive Mapped to a Network Share

Posted on 2008-04-23 23:46:23 by lexa

On Apr 23, 11:14=A0pm, Jerry C <jerr...@nospam.nospam> wrote:
> I am trying to accesss a Mapped Drive from my asp.net code running on =A0I=
IS 6.0.
>
> I am =A0using a FileUpload control and fileUpload.SaveAs() to save the fil=
e to
> the server. I want to save the file to a mapped drive that is mapped to a
> share on the network. When I save to "C:\temp\myFile.txt it works but when=
I
> save to Z:\temp\myFile.txt is will not work. I also want to copy, delete a=
nd
> move these files.
> I have found some pages on the net that mention this but none of the fixes=

> work.
>
> Any help.
>
> Thank you
> --
> Jerry

http://groups.google.com/group/microsoft.public.dotnet.frame work.aspnet/brow=
se_thread/thread/ec9a28d4bb655c14/cf3ed675b1609854

Report this message

#3: RE: Access Drive Mapped to a Network Share

Posted on 2008-04-24 06:02:10 by stcheng

Hi Jerry,

As for the mapped share drive problem, it is likely caused by the mapped
drive is not visible to your ASP.NET application. Because the mapped drive
is created under another interactive logon user while the ASP.NET
application runs under a dedicated process account.

Alexey has mentioned a thread which suggest that you use win32 api to
programmtically create the share drive in ASP.NET application(under the
ASP.NET process account) before you use it. In addition this, you can also
consider using Process Class to invoke "cmd.exe" and use "net use" command
to create the share.

#Net Use Command
http://www.cezeo.com/tips-and-tricks/net-use-command/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: =?Utf-8?B?SmVycnkgQw==?= <jerryed@nospam.nospam>
>Subject: Access Drive Mapped to a Network Share
>Date: Wed, 23 Apr 2008 14:14:00 -0700
>
>I am trying to accesss a Mapped Drive from my asp.net code running on IIS
6.0.
>
>I am using a FileUpload control and fileUpload.SaveAs() to save the file
to
>the server. I want to save the file to a mapped drive that is mapped to a
>share on the network. When I save to "C:\temp\myFile.txt it works but when
I
>save to Z:\temp\myFile.txt is will not work. I also want to copy, delete
and
>move these files.
>I have found some pages on the net that mention this but none of the fixes
>work.
>
>Any help.
>
>Thank you
>--
>Jerry
>

Report this message

#4: Re: Access Drive Mapped to a Network Share

Posted on 2008-04-24 15:08:39 by George Ter-Saakov

Cool, I was just about to repost the code then checked the link and saw
it.....
Google rocks :)


George.




"Alexey Smirnov" <alexey.smirnov@gmail.com> wrote in message
news:5e9edb74-1451-4ee4-902b-a905f611f4ab@s50g2000hsb.google groups.com...
On Apr 23, 11:14 pm, Jerry C <jerr...@nospam.nospam> wrote:
> I am trying to accesss a Mapped Drive from my asp.net code running on IIS
> 6.0.
>
> I am using a FileUpload control and fileUpload.SaveAs() to save the file
> to
> the server. I want to save the file to a mapped drive that is mapped to a
> share on the network. When I save to "C:\temp\myFile.txt it works but when
> I
> save to Z:\temp\myFile.txt is will not work. I also want to copy, delete
> and
> move these files.
> I have found some pages on the net that mention this but none of the fixes
> work.
>
> Any help.
>
> Thank you
> --
> Jerry

http://groups.google.com/group/microsoft.public.dotnet.frame work.aspnet/browse_thread/thread/ec9a28d4bb655c14/cf3ed675b1 609854

Report this message

#5: RE: Access Drive Mapped to a Network Share

Posted on 2008-04-24 15:33:00 by jerryed

Alexey, Steven

Thank you very good information.


--
Jerry


"Steven Cheng [MSFT]" wrote:

> Hi Jerry,
>
> As for the mapped share drive problem, it is likely caused by the mapped
> drive is not visible to your ASP.NET application. Because the mapped drive
> is created under another interactive logon user while the ASP.NET
> application runs under a dedicated process account.
>
> Alexey has mentioned a thread which suggest that you use win32 api to
> programmtically create the share drive in ASP.NET application(under the
> ASP.NET process account) before you use it. In addition this, you can also
> consider using Process Class to invoke "cmd.exe" and use "net use" command
> to create the share.
>
> #Net Use Command
> http://www.cezeo.com/tips-and-tricks/net-use-command/
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx .
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> --------------------
> >From: =?Utf-8?B?SmVycnkgQw==?= <jerryed@nospam.nospam>
> >Subject: Access Drive Mapped to a Network Share
> >Date: Wed, 23 Apr 2008 14:14:00 -0700
> >
> >I am trying to accesss a Mapped Drive from my asp.net code running on IIS
> 6.0.
> >
> >I am using a FileUpload control and fileUpload.SaveAs() to save the file
> to
> >the server. I want to save the file to a mapped drive that is mapped to a
> >share on the network. When I save to "C:\temp\myFile.txt it works but when
> I
> >save to Z:\temp\myFile.txt is will not work. I also want to copy, delete
> and
> >move these files.
> >I have found some pages on the net that mention this but none of the fixes
> >work.
> >
> >Any help.
> >
> >Thank you
> >--
> >Jerry
> >
>
>

Report this message

#6: Re: Access Drive Mapped to a Network Share

Posted on 2008-04-24 16:02:42 by lexa

On Apr 24, 3:08=A0pm, "George Ter-Saakov" <gt-...@cardone.com> wrote:
> Google rocks :)
>

Indeed :-)

Report this message