PC Review


Reply
Thread Tools Rate Thread

Accessing Files on a Network Share

 
 
Joel Barsotti
Guest
Posts: n/a
 
      1st Oct 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
 
      1st Oct 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
 
      1st Oct 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
Rate This Thread
Rate This Thread:

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
Accessing files on a network share =?Utf-8?B?bGFzYWJv?= Microsoft Dot NET Framework 4 28th Feb 2007 02:33 PM
Accessing files on Vista network share breaks network Rastaman Windows Vista Networking 0 15th Dec 2006 04:42 PM
Bad performance when accessing files over a network share =?Utf-8?B?QXR0aWxhIFRhanRp?= Microsoft Windows 2000 Networking 2 28th Jan 2006 07:06 PM
Accessing files via network share / streamed? Andreas Schmid Windows XP Help 3 23rd Apr 2005 11:55 AM
Re: Accessing Acrobat 5.0 files over a network share Lanwench [MVP - Exchange] Microsoft Windows 2000 Applications 6 26th Aug 2003 06:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 PM.