Maybe you need to try mapping the drive using the same account that IIS is
running under. The ERROR_SESSION_CREDENTIAL_CONFLICT appears to happen when
a mapping is already in place using a different Username/Password than the
one you are trying.

The latest example I found with this error is when trying to add an NT
machine to an existing domain using the administrator username/password. The
error occurs if there is a drive already mapped using a different
username/password. Removing the drive mapping allowes the machine to join
the domain.

Dave.

-----Original Message-----
From: Jim Zheng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 20 July 2000 11:43
To: Multiple recipients of list delphi
Subject: [DUG] Network resource and IIS


Hi, All,

When we try to map a network connection inside IIS, i.e. in an OCX 
component, by using WnetAddConnection2 API function, we get error code 
which does not list in the WnetAddConnection2 help document, 
ERROR_SESSION_CREDENTIAL_CONFLICT is one of them.

Does anyone know how to connect to a network drive or how to use a network 
file resource in an OCX component? We know the OCX component is running in 
IIS service, so mapping a drive manually under a login is not recognized by 
IIS.

We are using Windows 2000.

Any comments would be appreciated.

Jim Zheng


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to