Click here to Skip to main content
15,927,921 members
Home / Discussions / C#
   

C#

 
GeneralMoving a file over a network. Pin
Dylan van Heerden14-Oct-04 0:30
Dylan van Heerden14-Oct-04 0:30 
GeneralRe: Moving a file over a network. Pin
Colin Angus Mackay14-Oct-04 2:00
Colin Angus Mackay14-Oct-04 2:00 
GeneralRe: Moving a file over a network. Pin
Dylan van Heerden14-Oct-04 2:18
Dylan van Heerden14-Oct-04 2:18 
GeneralRe: Moving a file over a network. Pin
Colin Angus Mackay14-Oct-04 2:22
Colin Angus Mackay14-Oct-04 2:22 
GeneralRe: Moving a file over a network. Pin
Dylan van Heerden14-Oct-04 2:39
Dylan van Heerden14-Oct-04 2:39 
GeneralRe: Moving a file over a network. Pin
Colin Angus Mackay14-Oct-04 2:47
Colin Angus Mackay14-Oct-04 2:47 
GeneralRe: Moving a file over a network. Pin
Dylan van Heerden14-Oct-04 2:51
Dylan van Heerden14-Oct-04 2:51 
GeneralRe: Moving a file over a network. Pin
Heath Stewart14-Oct-04 6:43
protectorHeath Stewart14-Oct-04 6:43 
By default ASP.NET runs under the ASPNET account, a local machine account. This can cause a problem, especially since the password is, by default, randomly generated when the AppDomain is recycled.

If you're on a domain (and presumably you are), I (and most other developers familiar with this problem) recommend changing your machine.config file to use a domain account (like MYDOMAIN\ASPNET) and the password assigned to that user. This file is protected under strict ACLs so you shouldn't worry too much.

That'll make it easier for the web service running under ASP.NET to copy files, since you're now using a domain account instead of a local account (which you might not even be able to reference depending on your network topology). See the <httpRuntime> element documentation in the .NET Framework SDK for more information.

Alternatively, you could enable impersonation. That's a little more drawn-out, so I would refer you to the .NET Framework SDK and MSDN[^] articles about how to do that, or ask in the ASP.NET forum here.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Moving a file over a network. Pin
Heath Stewart14-Oct-04 6:38
protectorHeath Stewart14-Oct-04 6:38 
GeneralStrong name to Interop assembly Pin
hatim_ali13-Oct-04 23:44
hatim_ali13-Oct-04 23:44 
GeneralRe: Strong name to Interop assembly Pin
Alex Korchemniy14-Oct-04 9:18
Alex Korchemniy14-Oct-04 9:18 
GeneralRe: Strong name to Interop assembly Pin
hatim_ali14-Oct-04 19:19
hatim_ali14-Oct-04 19:19 
GeneralInsert RTF files in Access DB Pin
Zamolxes13-Oct-04 23:35
Zamolxes13-Oct-04 23:35 
GeneralRe: Insert RTF files in Access DB Pin
Judah Gabriel Himango14-Oct-04 5:45
sponsorJudah Gabriel Himango14-Oct-04 5:45 
GeneralRe: Insert RTF files in Access DB Pin
Heath Stewart14-Oct-04 6:35
protectorHeath Stewart14-Oct-04 6:35 
GeneralRe: Insert RTF files in Access DB Pin
Heath Stewart14-Oct-04 6:34
protectorHeath Stewart14-Oct-04 6:34 
QuestionTextBox - What else? Pin
pat27088113-Oct-04 22:43
pat27088113-Oct-04 22:43 
AnswerRe: TextBox - What else? Pin
Jay Shankar13-Oct-04 22:56
Jay Shankar13-Oct-04 22:56 
GeneralDictionary on cd Pin
hazzem elrefai13-Oct-04 22:38
hazzem elrefai13-Oct-04 22:38 
GeneralRe: Dictionary on cd Pin
Colin Angus Mackay13-Oct-04 22:48
Colin Angus Mackay13-Oct-04 22:48 
GeneralRe: Dictionary on cd Pin
Anonymous14-Oct-04 1:50
Anonymous14-Oct-04 1:50 
GeneralTab Control Pin
mathon13-Oct-04 21:59
mathon13-Oct-04 21:59 
GeneralRe: Tab Control Pin
Alex Korchemniy14-Oct-04 9:50
Alex Korchemniy14-Oct-04 9:50 
Generaladding combo box and data picker in DataGrid Pin
shambho13-Oct-04 21:24
shambho13-Oct-04 21:24 
GeneralAltering the word wrap in a multiline text box / rich text box Pin
Jay Shankar13-Oct-04 20:50
Jay Shankar13-Oct-04 20:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.