Re: file.move to unc causes error

From: Michael McLaughlin (MichaelMcLaughlin_at_discussions.microsoft.com)
Date: 12/28/04


Date: Tue, 28 Dec 2004 13:31:03 -0800

NO I do not.

"Daniel Fisher(lennybacon)" wrote:

> 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: URL Rewriting ?
    ... > Daniel Fisher ... >> MCP C# ASP.NET ... >>hab da ein kleines Problem. ... >>THX und Gruss ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: file.move to unc causes error
    ... Daniel Fisher ... MCP ASP.NET C# ... Blog: http://www.lennybacon.com/ ... "Michael McLaughlin" wrote in ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: redirect not working
    ... Have you tried to run the code on a different local machine or a VM? ... Daniel Fisher ... > server the redirect stops working. ... >> MCP C# ASP.NET ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • 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: 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)