Re: Opening a remote file from web service code

From: Eric Giles (Eric.Giles_at_Workpac.com)
Date: 02/15/05


Date: Tue, 15 Feb 2005 11:37:01 +1000

Are you hosting the service on a Windows 2003 server?

Apparently there are some issues with Windows 2003 when trying to
impersonate a user to a remote resource. We stumbled across a similar issue
when using SQL Reporting Services hosted on Windows 2003. We reinstalled the
entire reporting environment onto a Windows 2000 Server and the problem
immediately disappeared. These issues related to security problems access
resources on remote machines via a web application.

If you have access to a Windows 2000 server and you are currently using a
Windows 2003 server, this may be worth testing.

- Eric Giles

"Daniel P." <anonymous@discussions.microsoft.com> wrote in message
news:255c01c512cd$842c7970$a401280a@phx.gbl...
> I'm using C#:
>
> Stream s = File.Open( @"\remotemachine\share\MyFile.txt"
> , FileMode.Open
> , FileAccess.Read
> , FileShare.Read );
>
> I'm getting the following exception:
>
> "The referenced account is currently locked out and may
> not be logged on to."
>
> I'm admin on the remote machine.
>
> Trying on another machine where I'm a simple user I get
>
> "Could not find a part of the path "M:\MyFile.txt"
>
> The file sits on another machine on the network. I change
> the account settings in IIS Admin to use my domanin
> account instead of the defual one (IUSR_...).
>
> Can anyone point me into the right direction?
>
> Thanks!
> Daniel
>



Relevant Pages

  • Re: upgrading frm XP Home to Pro
    ... Why do you think you need Windows XP Professional? ... won't and we need to upgrade all the computers to Pro. ... You bought a server to 'network your computers' and so you can ... software) would give you the same abilities as 'Remote Desktop' ...
    (microsoft.public.windowsxp.general)
  • SecurityFocus Microsoft Newsletter #139
    ... OFF any Windows 2000 Managed Dedicated Hosting Solution from Interland. ... Sun ONE Application Server Plaintext Password Vulnerability ... Batalla Naval Remote Buffer Overflow Vulnerability ...
    (Focus-Microsoft)
  • Re: DNS CORRUPT AND ALL SYSTEMS DOWN
    ... DHCP Server ... Remote Access Connection Manager ... Windows Internet Name Service ...
    (microsoft.public.windows.server.dns)
  • Re: DNS CORRUPT AND ALL SYSTEMS DOWN
    ... > DHCP Server ... > Remote Access Connection Manager ... > Windows Internet Name Service ...
    (microsoft.public.windows.server.dns)
  • RE: sshd for windows
    ... As is Windows Terminal Services and Remote Desktop. ... looking for a way to log in remotely to a Windows 2000 server. ... > The Gartner Group just put Neoteris in the top of its Magic Quadrant, ...
    (Security-Basics)