Re: file.move to unc causes error

From: Daniel Fisher\(lennybacon\) (info_at_(removethis)lennybacon.com)
Date: 12/28/04


Date: Tue, 28 Dec 2004 21:34:37 +0100

do you have something like this in your web.config ?

<identity
   impersonate="true"
  />

-- 
Daniel Fisher(lennybacon)
 MCP ASP.NET C#
 Blog: http://www.lennybacon.com/
"Michael McLaughlin" <MichaelMcLaughlin@discussions.microsoft.com> wrote in 
message news:226E5AA9-A9EA-4BF1-949A-FFB55C2A5EB7@microsoft.com...
> Hello I also posted this message under dotnet.security.
>
> What I have is a web application that shows the user their files in a
> protected location. The user can then select a file and move it to another
> server over unc. The user is logged in via windows basic authentication 
> with
> their domain credentials and the site is ssl encrypted. When the file.move
> command executes it generates an error which I am sure is based on ntfs
> access denied. When I take a look at the 
> request.ServerVariables("AUTH_USER")
> it shows my user. I am sure this is an impersonation issue, can anyone 
> point
> me in the right direction?
>
> foldername = "c:\path\folder"
> mpf = "\\server\share\path"
> file.Move(foldername & "\" & CStr(DropDownList1.SelectedItem.Text), Mpf &
> "\" & CStr(DropDownList1.SelectedItem.Text))
> 


Relevant Pages

  • Re: Cast from type DBNull to type String is not valid.
    ... is not so nice cause you set the num of th column and not the name, ... Daniel Fisher ... MCP ASP.NET C# Blog: http://www.lennybacon.com/ "tshad" wrote in message ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Title-tag per Code ändern
    ... Daniel Fisher ... MCP ASP.NET C# ... Blog: http://www.lennybacon.com/ ... "Alexander Szigetvary" wrote in message ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: code-ausführung in einem template
    ... Daniel Fisher ... "Capior" wrote in message ... >> MCP ASP.NET C# ... >> Blog: http://www.lennybacon.com/ ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Tutorials
    ... Daniel Fisher ... MCP C# ASP.NET ... Blog: http://www.lennybacon.com/ ... "cashdeskmac" wrote in message ...
    (microsoft.public.dotnet.security)
  • Re: URL Rewriting ?
    ... > Daniel Fisher ... >> MCP C# ASP.NET ... >>hab da ein kleines Problem. ... >>THX und Gruss ...
    (microsoft.public.de.german.entwickler.dotnet.asp)