Re: FolderExists and UNC path



Traditionally ASP uses the IUSR_<machinename> account so try mapping a drive using that username and password or assigning permissions to that account or changing to a different one if you don't know or can't change the password. (It's also difficult giving permissions on a remote machine to a local account, you need to create one on the remote machine with identical name and password.)
When you've sorted out what's happening you can decide how to proceed bearing in mind that giving the ASP account higher privileges can be dangerous from a security stand point.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

"Claudio" <cschmid@xxxxxxxxx> wrote in message news:c7254eff-d666-4bc7-93aa-1008b53ce5ad@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

When I ran this command from the server logged with my user it
works, when I ran this command form my PC too.
The problem is when I ran the asp page from my PC using an Internet
Explorer.

I post the problem here, (not in the ASP group) becouse I think
that the problem is related to vbscript code or permissions.

Thanks

On 23 jul, 11:54, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
<csch...@xxxxxxxxx> wrote in message

news:d24db7dc-8b7c-4b0c-b2cb-8671726f9d7e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx





> Hi All,

> I have the follow situation:

> In may Server A i have test asp page with the following code

> <%
> mImportDirectory = "\\BAIVMAST3\cvmData$"
> set fso = Server.CreateObject("Scripting.FileSystemObject")
> response.write mImportDirectory"="&fso.FolderExists(mImportDirectory)
> %>

> when I test the page into the server with my user, the result of
> FolderExists is "True", but when I test it from another PC (not the
> server), the result is "False".

> The share permissions and the security permissions on \
> \BAIVMAST3\cvmData$ is everybody fullcontrol.

> The IIS site is seted to use the Integrated Windows security, so in
> both case my username of windows was used.

> Any idea?

> Thanks

What happens when you type these commands from a Command Prompt?

dir \\BAIVMAST3\cvmData$
if exist \\BAIVMAST3\cvmData$ (echo Folder found) else (echo Folder not
found)- Ocultar texto de la cita -

- Mostrar texto de la cita -

.



Relevant Pages

  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... TestUser (normal user account with same credentials on all machines). ... I created a share on a remote server. ... reviewing it's sharing permissions and security tab permissions "everyone" ... "directory security" tab on the vdir and selecting, edit, edit and manually ...
    (microsoft.public.inetserver.iis)
  • RE: SBS 2003/member Web Server and ISUR access
    ... NTFS permissions for the directories and files ... the IIS content directories have the following permissions. ... Server Extensions, ASPNET, SQL Server and other software is installed. ... The IUSR_MachineName account has the following permissions. ...
    (microsoft.public.windows.server.sbs)
  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... TestUser (normal user account with same credentials on all machines). ... I logged into the IIS server as vdirUser and simply typed ... open and I had read and write permissions to the share. ... I logged off and back into the IIS server as the administrator and deleted ...
    (microsoft.public.inetserver.iis)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... The error message is "Server Application Unavailable". ... The user account I've ... Please review the permissions outlined in this article. ... So I switched to that directory in Command Prompt and tried the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Server Unavailable - ASP.NET 2.0 on Windows XP
    ... Please review the permissions outlined in this article. ... Make sure that the HOME-WKSTATION\ASPNET account has been assigned NTFS ... So I switched to that directory in Command Prompt and tried the following... ... I'm still getting the "Server Unavailable" error... ...
    (microsoft.public.dotnet.framework.aspnet)