Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Accessing Files on a Network Share

Reply
Thread Tools

Accessing Files on a Network Share

 
 
Joel Barsotti
Guest
Posts: n/a
 
      10-01-2007
Currently I let people download files that the server knows they have
purchased.

I use Response.TransmitFile(filePath + "\\" + fileName) command

filepath is usually a network share like "\\\\storage-server\\fileshare"

Currently the only way I can figure to keep this working is to keep the
aspnet user password on both machines sync'd up, which is problematic since
patches often cause the ASPNET user account's password to regenerate.

Anybody have a good solution?

 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      10-01-2007

You can look at impersonation. Look at the last line.


<!-- AUTHENTICATION
This section sets the authentication policies of the application.
Possible modes are "Windows",
"Forms", "Passport" and "None"

"None" No authentication is performed.
"Windows" IIS performs authentication (Basic, Digest, or
Integrated Windows) according to
its settings for the application. Anonymous access must be
disabled in IIS.
"Forms" You provide a custom form (Web page) for users to enter
their credentials, and then
you authenticate them in your application. A user credential
token is stored in a cookie.
"Passport" Authentication is performed via a centralized
authentication service provided
by Microsoft that offers a single logon and core profile services
for member sites.
-->


<authentication mode="Windows" />
<identity impersonate="true" userName="mydomain\johnSmith"
password="johnPassword" />





"Joel Barsotti" <(E-Mail Removed)> wrote in message
news:OFhy$(E-Mail Removed)...
> Currently I let people download files that the server knows they have
> purchased.
>
> I use Response.TransmitFile(filePath + "\\" + fileName) command
>
> filepath is usually a network share like "\\\\storage-server\\fileshare"
>
> Currently the only way I can figure to keep this working is to keep the
> aspnet user password on both machines sync'd up, which is problematic
> since patches often cause the ASPNET user account's password to
> regenerate.
>
> Anybody have a good solution?



 
Reply With Quote
 
 
 
 
Michael Nemtsev
Guest
Posts: n/a
 
      10-01-2007
Hello Joel,


Just to add to sloan's post, read the detailed explanation there
http://west-wind.com/weblog/posts/1572.aspx


---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


JB> Currently I let people download files that the server knows they
JB> have purchased.
JB>
JB> I use Response.TransmitFile(filePath + "\\" + fileName) command
JB>
JB> filepath is usually a network share like
JB> "\\\\storage-server\\fileshare"
JB>
JB> Currently the only way I can figure to keep this working is to keep
JB> the aspnet user password on both machines sync'd up, which is
JB> problematic since patches often cause the ASPNET user account's
JB> password to regenerate.
JB>
JB> Anybody have a good solution?
JB>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
Accessing Windows Network Share? frikk Python 4 08-16-2007 07:53 PM
Wireless Network - Setup - How? See/share Files, share printers, how? Wayne Wireless Networking 2 04-08-2006 04:34 PM
Accessing remote network share through ASP.Net John Fleming ASP .Net 0 01-29-2006 08:42 PM
Accessing password-protected network share wheresjim Java 9 10-06-2005 06:08 PM



Advertisments